pub fn get_divisors<T: Num>(n: T) -> Vec<T>
Expand description
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);
}