Jeroen Demeyer on Wed, 16 Mar 2016 10:21:19 +0100


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

Proposal to extend primes()


Hello pari-dev,

I propose to have a 2-argument version of primes() such that primes(a,b) would be equivalent to the current primes([a,b]). Moreover, we could make the first argument optional and make primes(,n) equivalent to primes(2, n) and return the list of all primes <= n.

What do you think? Implementing this is easy: add a new function gp_primes() checking the arguments and calling either primes0() or primes_interval().


Cheers,
Jeroen.