Expand description
Contains an implementation of Lenstra’s ECM factoring algorithm.
Functions§
- lenstra_
ec_ factor unstable-enable - Availability
- lenstra_
ec_ factor_ small unstable-enable - Given
Z/nZ, tries to find a factor ofnof size at most2^min_factor_bound_log2. If such a factor exists, the function is likely to successfully find it (with probability1 - c^repetitions, for a constant0 < c < 1). Otherwise, it is likely to returnNone.