Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,15 @@
USING: formatting kernel math math.primes
tools.memory.private ;
IN: rosetta-code.loops-inc-body
42
0
[ dup 42 < ] [
over prime? [
1 + 2dup swap commas
"n = %-2d %19s\n" printf
[ dup + 1 - ] dip
] when
[ 1 + ] dip
] while
2drop

View file

@ -0,0 +1,16 @@
USING: formatting kernel math math.primes
tools.memory.private ;
IN: rosetta-code.loops-inc-body
[let
42 :> i!
0 :> n!
[ n 42 < ] [
i prime? [
n 1 + n!
n i commas "n = %-2d %19s\n" printf
i i + 1 - i!
] when
i 1 + i!
] while
]