Anonymous user
Square form factorization: Difference between revisions
m
→{{header|REXX}}: changed a comment in the REXX section header.
m (→{{header|REXX}}: added a comment to the REXX section header.) |
m (→{{header|REXX}}: changed a comment in the REXX section header.) |
||
Line 692:
at [https://en.wikipedia.org/wiki/Shanks%27s_square_forms_factorization Shanks' square forms factorization].
The only "failure" of this REXX version of Shanks' square forms factorization
within the
<br>REXX program) is because the number being tested is a prime (1,002,742,628,021).
<lang rexx>/*REXX pgm factors an integer using Daniel Shanks' (1917-1996) square form factorization*/
numeric digits 100 /*ensure enough decimal digits.*/
|