Fractran: Difference between revisions

No change in size ,  3 years ago
m
→‎showing all terms: simplified the program.
m (→‎showing prime numbers: simplified the program.)
m (→‎showing all terms: simplified the program.)
Line 3,435:
say right('term' j, 35) "──► " N /*display the Nth term with the N. */
N= N % d.k * n.k /*calculate next term (use %≡integer ÷)*/
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 all done. */</lang>