aboutsummaryrefslogtreecommitdiff
path: root/primes.cpp
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-10-05 21:18:19 +0200
committertomsmeding <tom.smeding@gmail.com>2016-10-05 21:18:19 +0200
commit8e7f8300f82f9d93f94813cd717bf2943e5ad07a (patch)
tree4da4501f82b4931a7ee11662ac918c404133180a /primes.cpp
parent62dab77c1769c398dfb3f0a6968e35f63869e7e5 (diff)
Now division ACTUALLY works
Diffstat (limited to 'primes.cpp')
-rw-r--r--primes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/primes.cpp b/primes.cpp
index d259939..934d886 100644
--- a/primes.cpp
+++ b/primes.cpp
@@ -154,7 +154,7 @@ bool strongLucasPrime(const Bigint &n){
// cerr<<"ok"<<endl;
//now begin the actual sequence algorithm
-#if 0
+#if 1
int s=0;
Bigint d(n);
d+=1;
@@ -198,7 +198,7 @@ bool strongLucasPrime(const Bigint &n){
}
}
if(U==0)return true;
-#if 0
+#if 1
if(V==0)return true; //r=0 check
for(int r=1;r<s;r++){
V*=V;