Igor Schein on Mon, 20 Oct 2003 16:34:18 -0400


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

Re: Bug in isprime()


On Mon, Oct 20, 2003 at 11:05:14AM +0200, Dr. Robert J. Harley wrote:
> Here's what happens:
> 
> ------------------------------------------------------------------------------
> > gp
> Reading GPRC: /home/harley/.gprc ...Done.
> 
>                  GP/PARI CALCULATOR Version 2.2.6 (development)
>                 i686 running linux (ix86 kernel) 32-bit version
>        compiled: Oct  9 2003, gcc-3.2.2 20030222 (Red Hat Linux 3.2.2-5)
>                 (readline v4.3 enabled, extended help available)
> 
>                        Copyright (C) 2003 The PARI Group
> 
> PARI/GP is free software, covered by the GNU General Public License, and
> comes WITHOUT ANY WARRANTY WHATSOEVER.
> 
> Type ? for help, \q to quit.
> Type ?12 for how to get moral (and possibly technical) support.
> 
>    realprecision = 28 significant digits
>    seriesprecision = 16 significant terms
>    format = g0.28
> 
> parisize = 100000000, primelimit = 1000000
> (11:04) gp > isprime(156499227435744375600531968861048687296374896432841731)
>   ***   bug in GP (Segmentation Fault), please report

I am forwarding this to pari-dev list, since this bug is specific to
the unstable version.  It appears to have been introduced between 2.2.2
and 2.2.3 releases.  It doesn't exist in the stable branch.  The
command works fine with flag=1 and flag=2 in all development
versions. 

Igor