Anonymous user
Perfect numbers: Difference between revisions
m
→Lucas-Lehmer method: changed the comment in the section header. -- ~~~~
(→{{header|REXX}}: added comments and whitespace, added DO-END comment labels, optimized Lucas-Lehmer test method. -- ~~~~) |
m (→Lucas-Lehmer method: changed the comment in the section header. -- ~~~~) |
||
Line 1,083:
</pre>
===Lucas-Lehmer method===
This version uses memoization to implement a fast version of Lucas-Lehmer test
<br>
<lang rexx>/*REXX program tests if a number (or a range of numbers) is/are perfect.*/
parse arg low high . /*obtain the specified number(s).*/
|