Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
USING: combinators formatting grouping io kernel math
|
||||
math.primes.factors prettyprint ranges sequences ;
|
||||
|
||||
: n' ( m -- n )
|
||||
{
|
||||
{ [ dup neg? ] [ neg n' neg ] }
|
||||
{ [ dup 2 < ] [ drop 0 ] }
|
||||
{ [ factors dup length 1 = ] [ drop 1 ] }
|
||||
[ unclip-slice swap product 2dup n' * spin n' * + ]
|
||||
} cond ;
|
||||
|
||||
-99 100 [a..b] [ n' ] map 10 group
|
||||
[ [ "%5d" printf ] each nl ] each
|
||||
Loading…
Add table
Add a link
Reference in a new issue