for i = 1 to 50
if i < 2 then
let p = 0
else
if i = 2 then
let p = 1
if i % 2 = 0 then
for j = 3 to int(i ^ .5) step 2
if i % j = 0 then
break j
endif
wait
next j
if p <> 0 then
print i
next i