Anonymous user
Fractran: Difference between revisions
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 ÷)*/
end /*k*/ /* [↑] if an integer, we found a new N*/
end /*j*/ /*stick a fork in it, we're all done. */</lang>
|