num-primes 0.3.0

A Rust Library For Generating Large Prime and Composite Numbers using num with a simplistic interface.
Documentation
use num_primes::{Generator,Factorization};

#[test]
fn factor_uint(){
    // Generate a Large Unsigned Integer of 32 bits
    let x = Generator::new_uint(32);

    println!("Number: {}",x);

    // Factor The Largest Prime of x
    let prime_factor = Factorization::prime_factor(x);

    // Print Out The Statements
    match prime_factor {
        Some(prime_factor) => println!("Prime Factor: {}",prime_factor),
        None => println!("There are no prime factors")
    }

}