Sequence: nth number with exactly n divisors: Difference between revisions
Content added Content deleted
(→{{header|Go}}: Oops, wrong timing.) |
m (→more optimization: added wording to the REXX section header.) |
||
Line 735: | Line 735: | ||
::::::* odd non-prime numbers. |
::::::* odd non-prime numbers. |
||
::::::* even numbers. |
::::::* even numbers. |
||
This REXX version (unlike the 1<sup>st</sup> version(, only goes through the numbers once, instead |
|||
of looking for numbers that have specific number of divisors. |
|||
<lang rexx>/*REXX program finds and displays the Nth number with exactly N divisors. */ |
<lang rexx>/*REXX program finds and displays the Nth number with exactly N divisors. */ |
||
parse arg N . /*obtain optional argument from the CL.*/ |
parse arg N . /*obtain optional argument from the CL.*/ |