next_prime(113) = 121 with Ecl 11.1.1 !



On Thu, Jan 20, 2011 at 12:26:02PM -0500, Raymond Toy wrote:
> On 1/20/11 11:14 AM, Oliver Kullmann wrote:
> > Hello,
> >
> > Maxima 5.21.1 as well as 5.23.2, built with Ecl 11.1.1,
> > has a completely corrupted next_prime function, e.g.
> > next_prime(113) = 121 = 11^2
> > (determining all "primes" within {1,...,1000} yields 231
> > "primes", while there are 168).
> >
> > Don't know whether this is an Ecl or a Maxima (or a joint) problem.
> > Would be good to find out.
> Possibly a bug in ecl.  I get 121 using ecl 11.1.1, but both clisp and
> cmucl say 127.
>

I forget to mention that with Ecl 10.4.1 we get the correct results.

I'll report it to the Ecl list.

Oliver