From fd9c83cbb9d80a8108cd5112d12f475406b44a20 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 13 May 2016 19:07:07 +0200 Subject: zptest: if n is even, let the witness be 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/zptest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/zptest.c b/src/zptest.c index 406cedc..1a44069 100644 --- a/src/zptest.c +++ b/src/zptest.c @@ -28,7 +28,7 @@ zptest(z_t witness, z_t n, int t) } if (unlikely(zeven(n))) { if (witness) - SET(witness, n); + zsetu(witness, 2); return NONPRIME; } -- cgit v1.2.3-70-g09d2