We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1af10e commit 20d599cCopy full SHA for 20d599c
src/check.rs
@@ -45,7 +45,7 @@ pub const fn is_prime(n: u64) -> bool {
45
// in order to make the test both fast and deterministic.
46
// This list of witnesses was taken from
47
// <https://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test#Testing_against_small_sets_of_bases>.
48
- const WITNESSES: &[(u64, &[u64])] = &[
+ const WITNESSES: [(u64, &[u64]); 11] = [
49
(2_046, &[2]),
50
(1_373_652, &[2, 3]),
51
(9_080_190, &[31, 73]),
0 commit comments