diff --git a/Cargo.toml b/Cargo.toml index 5c2039e..e49d5be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-miller-rabin" -version = "0.1.3" +version = "0.1.4" edition = "2018" description = "A Rust implementation of the Miller-Rabin primality test" license = "MIT" diff --git a/src/miller_rabin.rs b/src/miller_rabin.rs index be33836..fea47f2 100644 --- a/src/miller_rabin.rs +++ b/src/miller_rabin.rs @@ -14,7 +14,7 @@ pub fn miller_rabin(candidate: &BigInt) -> bool { } if candidate.is_zero() || *candidate == BigInt::from(1) { - return false; // 0 and 1 are not prime + return false; } if candidate.to_string().len() == 1 {