Expand description
Implementations for various factorization algorithms.
Note general prime number field sieve is not planned to be implemented, since it’s too complex
See https://web.archive.org/web/20110331180514/https://diamond.boisestate.edu/~liljanab/BOISECRYPTFall09/Jacobsen.pdf for a detailed comparison between different factorization algorithms
Constants
Good squfof multipliers sorted by efficiency descendingly, from Dana Jacobsen.
Functions
William Hart’s one line factorization algorithm for 64 bit integers.
Find factors using Pollard’s rho algorithm with Brent’s loop detection algorithm
This function implements Shanks’s square forms factorization (SQUFOF).
Find factors by trial division, returns a tuple of the found factors and the residual.