Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
23
Task/Digital-root/Quackery/digital-root.quackery
Normal file
23
Task/Digital-root/Quackery/digital-root.quackery
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
[ abs 0 swap
|
||||
[ base share /mod
|
||||
rot + swap
|
||||
dup 0 = until ]
|
||||
drop ] is digitsum ( n --> n )
|
||||
|
||||
[ 0 swap
|
||||
[ dup base share > while
|
||||
dip 1+
|
||||
digitsum again ] ] is digitalroot ( n --> n n )
|
||||
|
||||
[ dup digitalroot
|
||||
rot echo
|
||||
say " has additive persistance "
|
||||
swap echo
|
||||
say " and digital root of "
|
||||
echo
|
||||
say ";" cr ] is task ( n --> )
|
||||
|
||||
627615 task
|
||||
39390 task
|
||||
588225 task
|
||||
393900588225 task
|
||||
Loading…
Add table
Add a link
Reference in a new issue