examples/benchmarks/primes.pl - Calculate prime numbers < 10000
% time perl examples/benchmarks/primes.pl
Calculates all the prime numbers up to 50000 and prints out the number of primes and the last one found.
examples/benchmarks/primes.c, examples/benchmarks/primes.pasm, examples/benchmarks/primes2_p.pasm, examples/benchmarks/primes2.c, examples/benchmarks/primes2.pasm, examples/benchmarks/primes2.py.
To install Parrot::Op, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parrot::Op
CPAN shell
perl -MCPAN -e shell install Parrot::Op
For more information on module installation, please visit the detailed CPAN module installation guide.