From: mpir-devel@googlegroups.com [mailto:mpir-devel@googlegroups.com] On 
Behalf Of Bill Hart
Sent: Friday, February 14, 2014 3:31 PM
To: mpir-devel
Subject: [mpir-devel] mpz_nextprime

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.
>>
Perhaps prime.c from the pari-gp code base could be helpful for ideas.
<<

-- 
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.

Reply via email to