[seqfan] Strange error in PARI/GP

Felix Fröhlich felix.froe at gmail.com
Wed May 18 16:08:03 CEST 2016


Dear Sequence fans,

I wrote the following PARI function

isleastnonwiefpsp(n, b) = if(Mod(b, n^2)^(n-1)==1, return(0),
forcomposite(c=1, n-1, if(Mod(n, c^2)^(c-1)!=1, return(0))), return(1))

When I try to execute this function, I get a strange error. For example,
when I execute the following function call

isleastnonwiefpsp(8, 12)

I get the error

_multi_if: bug in PARI/GP (Segmentation fault), please report.

Any ideas what the problem is here?
Felix



More information about the SeqFan mailing list