[][src]Function acm::factorize

pub fn factorize(n: u32) -> Vec<(u32, u32)>

Returns the prime power factorization of an integer.

Examples

assert_eq!(acm::factorize(120), [(2, 3), (3, 1), (5, 1)]);