[][src]Function divisors::get_divisors

pub fn get_divisors<T: Num>(n: T) -> Vec<T>

Return a vector with all divisors ordered of n in range (1, n-1).

Example

use std::time::{Instant};

fn main() {
    let n: u128 = 934832147123321;
    println!("finding divisors of {}", n);
    let start_time = Instant::now();
    let v = divisors::get_divisors(n);
    println!("time = {:?}, divisors = {:?}", start_time.elapsed(), v);
}