
Increased required Prime bit-length to at least 512-bits. Also updated the candidate checking process to increment the candidate by 2 only 500 times before the candidate is reseeded from the OS.
12 lines
194 B
Rust
12 lines
194 B
Rust
extern crate pumpkin;
|
|
|
|
use pumpkin::Prime;
|
|
|
|
fn main() {
|
|
let p = Prime::new(2048);
|
|
let q = Prime::new(2048);
|
|
|
|
println!("{}", p);
|
|
println!("{}", q);
|
|
println!("\n{}", p * q);
|
|
}
|