Jump to content

Goodstein Sequence: Difference between revisions

m
→‎{{header|Phix}}: marked js compatible
m (→‎{{header|Phix}}: report 32-bit limits properly)
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}
7,833

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.