home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 2: PC
/
frozenfish_august_1995.bin
/
bbs
/
d09xx
/
d0977.lha
/
Forth
/
Basic-Benchmarks
/
sieve
< prev
next >
Wrap
Text File
|
1994-04-03
|
371b
|
22 lines
t=timer
810 SIZE=7000
820 DIM FLAGS(7001)
830 PRINT "START ONE ITERATION"
840 COUNT=0
850 FOR I=0 TO SIZE
860 FLAGS(I)=1
870 NEXT I
880 FOR I=0 TO SIZE
890 IF FLAGS(I)=0 THEN 970
900 PRIME=I+I+3
910 K=I+PRIME
920 IF K>SIZE THEN 960
930 FLAGS(K)=0
940 K=K+PRIME
950 GOTO 920
960 COUNT=COUNT+1
970 NEXT I
980 PRINT "DONE: ";COUNT;" PRIMES FOUND"
985 PRINT timer-t
input a$