Currently the implementation of mpz_nextprime is: void mpz_nextprime(mpz_ptr x, mpz_srcptr y) { gmp_randstate_t rnd;
gmp_randinit_default(rnd); mpz_next_prime_candidate(x, y, rnd); gmp_randclear(rnd); } This certainly looks like it will return many composites, which is definitely not what we want. Bill. -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+unsubscr...@googlegroups.com. To post to this group, send email to mpir-devel@googlegroups.com. Visit this group at http://groups.google.com/group/mpir-devel. For more options, visit https://groups.google.com/groups/opt_out.