Jump to content

Fractran: Difference between revisions

No change in size ,  3 years ago
m
→‎showing prime numbers: simplified the program.
No edit summary
m (→‎showing prime numbers: simplified the program.)
Line 3,579:
N= N % d.k * n.k /*calculate next term (use %≡integer ÷)*/
L= max(L, length(N) ) /*the maximum number of decimal digits.*/
iterateleave j /*go start calculating the next term. */
end /*k*/ /* [↑] if an integer, we found a new N*/
end /*j*/ /*stick a fork in it, we're done. */</lang>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.