libzahl

big integer library
git clone git://git.suckless.org/libzahl
Log | Files | Refs | README | LICENSE

commit fd9c83cbb9d80a8108cd5112d12f475406b44a20
parent 7214b27058765ea3892061e846c601499892c48d
Author: Mattias Andrée <maandree@kth.se>
Date:   Fri, 13 May 2016 19:07:07 +0200

zptest: if n is even, let the witness be 2

Signed-off-by: Mattias Andrée <maandree@kth.se>

Diffstat:
src/zptest.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }