
Now each of the various modules (prime and safe_prime) exist within their own modules. The prime generation logic is now found within the common module.
13 lines
203 B
Rust
13 lines
203 B
Rust
extern crate pumpkin;
|
|
|
|
use pumpkin::prime;
|
|
|
|
fn main() {
|
|
let p = prime::new(2048);
|
|
println!("{:x}", p);
|
|
|
|
let q = prime::new(2048);
|
|
println!("\n{:x}", q);
|
|
|
|
println!("\n{:X}", p * q);
|
|
}
|