Miller–Rabin primality test: Difference between revisions

m
→‎{{header|Rust}}: Removed duplicate line of code.
m (→‎{{header|Rust}}: Added "rand" dependency to header comment.)
m (→‎{{header|Rust}}: Removed duplicate line of code.)
Line 4,423:
// https://inventwithpython.com/hacking/chapter23.html
let mut s: BigInt = Zero::zero();
let one: BigInt = One::one();
let n_minus_one: BigInt = n.clone() - &one;
let mut d = n_minus_one.clone();
Anonymous user