[sage-devel] Re: Inconsistency in next_prime (new patch)

2007-06-09 Thread Michel
Oops, Patch contains stupid typo. The docstring for precprime(gen self) should be precprime(x): *largest* pseudoprime <= x Michel On Jun 9, 9:06 pm, Michel <[EMAIL PROTECTED]> wrote: > Hi, > > Attached is a patch that fixes these inconsistencies. It also > introduces previous_probable_prime()

[sage-devel] Re: Inconsistency in next_prime (new patch)

2007-06-09 Thread Michel
Hi, Attached is a patch that fixes these inconsistencies. It also introduces previous_probable_prime() to be consistent with next_probable_prime() next/previous_prime with proof True now call pari.nextprime, pari.precprime. This is not much faster but it does make for more elegant code. http://