summaryrefslogtreecommitdiff
path: root/mpz/nextprime.c
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2008-12-18 00:55:26 +0100
committerTorbjorn Granlund <tege@gmplib.org>2008-12-18 00:55:26 +0100
commitf3d961dc3f2c30c3e222360cca93b0af47822701 (patch)
tree3685106bf9fc13e068a5393e69c26b395c20aa89 /mpz/nextprime.c
parentc3be8218f8dad5a88c645f2b71f57ac1c3905c5e (diff)
downloadgmp-f3d961dc3f2c30c3e222360cca93b0af47822701.tar.gz
Run 10 mpz_millerrabin tests (was 5).
Give credit to authors.
Diffstat (limited to 'mpz/nextprime.c')
-rw-r--r--mpz/nextprime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mpz/nextprime.c b/mpz/nextprime.c
index 90693f69a..e278feab6 100644
--- a/mpz/nextprime.c
+++ b/mpz/nextprime.c
@@ -2,6 +2,8 @@
Copyright 1999, 2000, 2001, 2008 Free Software Foundation, Inc.
+Contributed to the GNU project by Niels Möller and Torbjörn Granlund.
+
This file is part of the GNU MP Library.
The GNU MP Library is free software; you can redistribute it and/or modify
@@ -98,7 +100,7 @@ mpz_nextprime (mpz_ptr p, mpz_srcptr n)
difference = 0;
/* Miller-Rabin test */
- if (mpz_millerrabin (p, 5))
+ if (mpz_millerrabin (p, 10))
break;
next:;
incr += 2;