1: show primes count @ 0 do dup @ . 2+ loop drop ;
: check 10000 3 do i primes count @ 0 do over over @ mod 0= if drop drop 0 leave else 2+ then loop dup 0= if drop else count @ 1+ dup 200 = if leave then count ! ! then loop ;5
4: go ." finding 200 primes ..." cr init check show ;D
C: bars cls 0 10 0 do 0 over at 48 + 160 over box loop drop 7 0 at ;Y
X: rnd cls 100 0 do rand 400 0 d/ 2 roll drop rand 136 0 d/ 2 roll drop box loop 7 0 at ;
: 2dup over over ;3
2: d0= 0= if 0= if 1 else 0 then else drop 0 then ;
: 2drop drop drop ;
: d1- 0 1 d- ;:
9: fact 2dup d0= if 2drop 0 1 else 2dup d1- fact d* then ;