zptest: if n is even, let the witness be 2 - libzahl - big integer library
 (HTM) git clone git://git.suckless.org/libzahl
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit fd9c83cbb9d80a8108cd5112d12f475406b44a20
 (DIR) parent 7214b27058765ea3892061e846c601499892c48d
 (HTM) 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:
         M src/zptest.c                        |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) 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;
                }