summaryrefslogtreecommitdiff
path: root/math/millerRabin.cpp
diff options
context:
space:
mode:
authorMZuenni <michi.zuendorf@gmail.com>2023-03-01 11:36:26 +0100
committerMZuenni <michi.zuendorf@gmail.com>2023-03-01 11:36:26 +0100
commit12afe719ce268bb10aa93a910079a44eb08999b8 (patch)
tree0937a117287eebe3942e0506d27143eff4980d09 /math/millerRabin.cpp
parentad8456f7c5d44d3c647b3a368050a5d2f39ae3c3 (diff)
removed trailing whitespaces and use more structured bindings
Diffstat (limited to 'math/millerRabin.cpp')
-rw-r--r--math/millerRabin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/millerRabin.cpp b/math/millerRabin.cpp
index e4d2f6e..c6a782f 100644
--- a/math/millerRabin.cpp
+++ b/math/millerRabin.cpp
@@ -1,5 +1,5 @@
constexpr ll bases32[] = {2, 7, 61};
-constexpr ll bases64[] = {2, 325, 9375, 28178, 450775,
+constexpr ll bases64[] = {2, 325, 9375, 28178, 450775,
9780504, 1795265022};
bool isPrime(ll n) {
if (n < 2 || n % 2 == 0) return n == 2;