From be420cbd59e14a0f945bb95022b277113c63edfe Mon Sep 17 00:00:00 2001 From: Callum Fortune Date: Thu, 2 May 2024 11:12:19 +0100 Subject: [PATCH] remove comment for testing purposes --- Cargo.toml | 2 +- src/miller_rabin.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {