Ulam numbers: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added 100,000th number as a final comment.) |
m (→{{header|REXX}}: added output for the 10,000th Ulam number.) |
||
Line 240: | Line 240: | ||
end /*f*/ |
end /*f*/ |
||
end /*j*/; return @.# /*return the Nth Ulam number to caller.*/</lang> |
end /*j*/; return @.# /*return the Nth Ulam number to caller.*/</lang> |
||
{{out|output|text= when using the |
{{out|output|text= when using the input of: <tt> 10 100 1000 10000 </tt>}} |
||
<pre> |
<pre> |
||
the 10th Ulam number is: 18 |
the 10th Ulam number is: 18 |
||
the 100th Ulam number is: 690 |
the 100th Ulam number is: 690 |
||
the 1,000th Ulam number is: 12,294 |
the 1,000th Ulam number is: 12,294 |
||
the 10,000th Ulam number is: 132,788 |
|||
</pre> |
</pre> |
||