next_prime(113) = 121 with Ecl 11.1.1 !



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.

Ray