00900 .PR POINT .PR 01000 .BEGIN #PRINT FIRST THOUSAND PRIME NUMBERS# 01010 .INT THOUSAND = 320; 01020 .INT THIRTY = 30; #ACCORDING TO NUMBER THEORY, THE 30TH PRIME > SQRT(THE 1000TH PRIME)# 01030 .LOC [1:THOUSAND] .INT P; # TABLE TO CONTAIN PRIMES # 01040 .BEGIN # FILL TABLE P; P[K] WILL BE THE K'TH PRIME # 01050 P[1] := 2; # THE ONLY EVEN PRIME # 01060 .LOC .INT J := 1; # ODD NUMBER, TO BE INCREMENTED AND TESTED FOR PRIMENESS # 01070 .LOC .INT ORD := 1; 01080 #.INVARIANT P[ORD]**2 > J # 01090 .LOC .INT SQUARE := 4; 01100 #.INVARIANT SQUARE = P[ORD]**2 # 01110 .LOC [1:THIRTY] .INT MULT; 01120 #.INVARIANT MULT[N] IS A MULTIPLE OF P[N] FOR 1<=N