Skip to content

Commit 9f1285b

Browse files
committed
Clearer docstring for is_prime
1 parent f693d84 commit 9f1285b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/primality_checking.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ use crate::integer_math::{mod_mul, mod_pow};
44

55
/// Returns whether `n` is prime.
66
///
7-
/// Does trial division with a small wheel up to `log2(n)` and then uses a Miller-Rabin
8-
/// primality test with a set of witnesses that
9-
/// is known to be sufficient for numbers that fit in a `u64`.
7+
/// Does trial division with a small wheel up to `log2(n)` and then uses a
8+
/// deterministic Miller-Rabin primality test.
109
///
1110
/// # Example
12-
/// Basic usage
11+
///
12+
/// Basic usage:
1313
/// ```
1414
/// # use const_primes::is_prime;
1515
/// const CHECK: bool = is_prime(18_446_744_073_709_551_557);

0 commit comments

Comments
 (0)