Goodstein Sequence: Difference between revisions

Content deleted Content added
Petelomax (talk | contribs)
m →‎{{header|Phix}}: report 32-bit limits properly
Petelomax (talk | contribs)
m →‎{{header|Phix}}: marked js compatible
Line 136:
Modified version of the python code from A059934 - tbh, I did not expect to get anywhere near this far using native atoms,
and always planned to write a gmp version, but now that just feels like too much effort for too little gain.
<!--(phixonline)-->
<syntaxhighlight lang="phix">
with javascript_semantics
function digits(atom n, b)
-- least significant first, eg 123,10 -> {3,2,1} or 6,2 -> {0,1,1}