Factors of a Mersenne number: Difference between revisions
Content deleted Content added
m →{{header|REXX}}: simplified program, optimized a function, added wording to the REXX section header.. |
m →{{header|REXX}}: added a comment to the REXX section header. |
||
Line 2,260: | Line 2,260: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
REXX practically has no limit (well, up to around 8 million) on the number of decimal digits (precision). |
REXX practically has no limit (well, up to around 8 million) on the number of decimal digits (precision). |
||
This REXX version automatically adjusts the '''numeric digits''' to whatever is needed. |
|||
<lang rexx>/*REXX program uses exponent─and─mod operator to test possible Mersenne numbers. */ |
<lang rexx>/*REXX program uses exponent─and─mod operator to test possible Mersenne numbers. */ |
||
numeric digits 20 /*this will be increased if necessary. */ |
numeric digits 20 /*this will be increased if necessary. */ |