Question: introduction into loops.

im having issues with a problem on my homework. we are supposed to find all primes between 1000 through 1015. using the for loop, for in loop and while loop. 

the while loop seemed the easiest.

i:=1000;
1000
while i<=1015 do
i, "Is it a prime?", isprime(i);
i:=i+1;
end;

the for loop and the for in loop have gotten me abit comfused ive tried several times with each and nothing.

Please Wait...