From 62dab77c1769c398dfb3f0a6968e35f63869e7e5 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 5 Oct 2016 09:53:50 +0200 Subject: Fix Baillie-PSW! --- main.cpp | 27 +++++++++++++-------------- primes.cpp | 15 ++++++++++----- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/main.cpp b/main.cpp index 43d2de7..380fd0f 100644 --- a/main.cpp +++ b/main.cpp @@ -144,21 +144,19 @@ void performrsa(){ cout<<"msg = "<>=1; s++; @@ -193,8 +198,8 @@ bool strongLucasPrime(const Bigint &n){ } } if(U==0)return true; +#if 0 if(V==0)return true; //r=0 check -#if 1 for(int r=1;r