Read N
I<2
while i <= N do
if N is divisible by i
print"Not Prime"
exit
i < i +1
print"Prime"
exit
Is this pseudocode correct?
Read N
I<2
while i <= N do
if N is divisible by i
print"Not Prime"
exit
i < i +1
print"Prime"
exit
Is this pseudocode correct?