Jeroen Demeyer on Thu, 31 Mar 2005 22:22:49 +0200

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: prime/primes performance

On Thu, Mar 31, 2005 at 03:41:08AM -0800, Phil Carmody wrote:
> One other thing that I'd be interested in is a nextprime/precprime which takes
> a modular relation, and only returns primes satisfying that relation.
> e.g. nextprime(10^12,Mod(1,49152))

I found it usefull enough to write a GP-script for it.  It's an easy
exercise to do this.