Professional Documents
Culture Documents
Flowcharting Software
Home | Samples | Overview |
Free Trial | Tutorial | Purchase |
Upgrade | Support | Search
Function:IsThisNumberPrime
Start
No Istheinput
numberaninteger?
|Yes
Istheinput
Yes number<or=
12
Primenumbersare
No
integers>1
1=2
ReturnNo
Yes Isi>or=
inputnumber?
Theinputnumber
No
isaprimenumber
Dividetheinputnumberbyi
ReturnYes
No Istherea
remainder?
Theinputnumber
Yes
wasevenlydividedbyi
soitisnotaprime
i=i+1
Theinputnumber
isnotaprimenumber
ReturnNo
Description
Prime numbers are positive integers that
can only be divided evenly by 1 or
themselves. By definition, negative
integers, 0, and 1 are not considered
prime numbers. The list of the first few
prime numbers looks like:
5/1 = 5
5/2 = 2 plus a remainder
5/3 = 1 plus a remainder
5/4 = 1 plus a remainder
5/5 = 1
5/6 = 0 plus a remainder
... = 0 plus a remainder
4/1 = 4
4/2 = 2
4/3 = 1 plus a remainder
4/4 = 1
4/5 = 0 plus a remainder
... = 0 plus a remainder
Drawing Instructions
If you haven't already done so, first
download the free trial version of RFFlow.
It will allow you to open any chart and
make modifications.
Next
Register | Documentation |
Privacy and Security |
Version Information |
Free Additional Shapes |
Software Resellers | Free Viewer |
Contact | Full Version
RFF Electronics
PO Box 1244 Loveland CO 80539-1244
USA Phone 970 663 5767 www.rff.com
rff@rff.com
Copyright © 1996-2023 RFF Electronics. All
rights reserved.