SUNY Geneseo Department of Mathematics
Thursday, September 3
Math 303
Fall 2015
Prof. Doug Baldwin
isprime( n )
r = floor( √n )
for i = 2 to r
if n mod i = 0
return false
end of for
return true
a = empty vector
for i = 2 to n
a[i] = i