Square form factorization: Difference between revisions
Content deleted Content added
m →{{header|REXX}}: shortened the program. |
One less branching statement in 'classical heuristic' C code |
||
Line 249:
rhoin(a, b, c)
ix = floor(sqrt(2*r)) * 4;▼
//iteration bound
for (i = 2; i < ix; i++) {
▲ //search principal cycle
rho(a, b, c)
if (r * r == c)
//square form found
}▼
}
rho(a, b, c)
}
}
|