pumpkin/examples/multiply.rs
Zach Dziura 53329646ab v0.3
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.
2016-05-05 13:05:22 -04:00

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);
}