Perfect numbers: Difference between revisions
Content added Content deleted
PatGarrett (talk | contribs) m (→{{header|360 Assembly}}: Superfluous blanks suppressed) |
m (→{{header|REXX}}: elided a comment concerning an optimization that was removed earlier, the condition for the optimization was too rare to warrent a test.) |
||
Line 1,789: | Line 1,789: | ||
:::* testing bypasses the test of the first and last factors |
:::* testing bypasses the test of the first and last factors |
||
:::* the ''corresponding factor'' is used when a factor is found |
:::* the ''corresponding factor'' is used when a factor is found |
||
:::* testing is stopped if the sum of the factors exceeds '''X''' |
|||
<lang rexx>/*REXX program tests if a number (or a range of numbers) is/are perfect. */ |
<lang rexx>/*REXX program tests if a number (or a range of numbers) is/are perfect. */ |
||
parse arg low high . /*obtain optional arguments from the CL*/ |
parse arg low high . /*obtain optional arguments from the CL*/ |