Jasper Lievisse Adriaanse [2006-03-25, 15:28:59]:
> DESCR: Math::Prime::XS calculates/detects prime numbers by either applying
> Modulo operator division, the Sieve of Eratosthenes, Trial division or a
> Summing calculation.
> 
> Tested on alpha, i386 and sgi.
> 
> Port is attached and at
> http://nedbsd.nl/~jasper/obsd/ports/p5-Math-Prime-XS.tgz
> 
> Please test and comment.

the following gives me a SIGSEGV. the backtrace points to XS.xs line 93.

use Math::Prime::XS qw(primes is_prime);
@allprimes = primes(1e6);

steven

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Reply via email to