[][src]Function reikna::prime::factorize

pub fn factorize(value: u64) -> Vec<u64>

Return a Vec<u64> of the value's factorization

This is a helper function that generates a Vec of primes internally, rather than requiring one to be explicitly passed in.

Panics

Panics if value causes a panic when provided to prime_sieve().

Examples

use reikna::prime::factorize;
assert_eq!(factorize(100), vec![2, 2, 5, 5]);