Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
19
Task/Repunit-primes/Quackery/repunit-primes.quackery
Normal file
19
Task/Repunit-primes/Quackery/repunit-primes.quackery
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[ base put
|
||||
1 temp put
|
||||
[] 1 1000 times
|
||||
[ temp share prime if
|
||||
[ dup prime if
|
||||
[ dip [ i^ 1+ join ] ] ]
|
||||
base share * 1+
|
||||
1 temp tally ]
|
||||
drop
|
||||
temp release
|
||||
base release ] is repunitprimes ( n --> [ )
|
||||
|
||||
15 times
|
||||
[ i^ 2 +
|
||||
dup 10 < if sp
|
||||
dup echo
|
||||
say ": "
|
||||
repunitprimes echo
|
||||
cr ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue