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=&nbsp; when using the default inputs:}}
{{out|output|text=&nbsp; when using the input of: &nbsp; &nbsp; <tt> 10 &nbsp; 100 &nbsp; 1000 &nbsp; 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>