Karim Belabas on Wed, 03 Dec 2014 14:51:38 +0100


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

Re: ispseudoprimepower()


* Jeroen Demeyer [2014-09-24 12:37]:
> On 2014-09-09 21:33, Jeroen Demeyer wrote:
> >Sage currently has such a function but implemented not as efficiently as
> >isprimepower(). You can imagine such a function being used to implement
> >the construction of finite fields (In Sage, the constructor takes the
> >order q as parameter)
> >
> >I could easily implement this in PARI if you want...
> In attachment a patch implementing the libpari function
> ispseudoprimepower(). If you think this patch is a good idea, I can add the
> corresponding GP function and documentation.

I committed a variant on this one. There was actually a (single) pre-existing
use-case in libpari :-)

Thanks for the suggestion !

    K.B.
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux         Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux1.fr/~kbelabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux1.fr/  [PARI/GP]
`