actually print p2's bits instead of p1's

This commit is contained in:
jacekpoz 2024-05-14 15:42:56 +02:00
parent f822767a02
commit e96c391fa0
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -166,7 +166,7 @@ fn main() {
println!("p1 ({b} bits): 0x{p1:X}", b = p1.bits()); println!("p1 ({b} bits): 0x{p1:X}", b = p1.bits());
let p2: BigUint = thread_rng().gen_prime_exact(n, Some(PrimalityTestConfig::strict())); let p2: BigUint = thread_rng().gen_prime_exact(n, Some(PrimalityTestConfig::strict()));
println!("p2 ({b} bits): 0x{p2:X}", b = p1.bits()); println!("p2 ({b} bits): 0x{p2:X}", b = p2.bits());
println!(); println!();