[][src]Type Definition elr_primes::Factors

type Factors = Vec<(usize, usize)>;

Vector of prime factor tuples.

Factors are stored as a tuple, with the first entry being the prime value and the second entry being the exponent to raise the value to.

Example

use elr_primes::Factors;

let factors_of_18: Factors = vec![(2, 1), (3, 2)]; // 2^1 * 3^2 = 18