Skip to main content

factorize

Function factorize 

Source
pub fn factorize(n: u64) -> Vec<(u64, u32)>
Expand description

The prime factorization of n ≥ 1 as (prime, exponent) pairs in increasing order (empty for 1, and for 0, which has no factorization). Small factors are removed by trial division, the remainder is split recursively with Pollard’s rho and certified by deterministic Miller-Rabin. Any u64 factors in milliseconds.