| parrotcode: Calculate prime numbers < 10000 | |
| Contents | Examples |

examples/benchmarks/primes2.pir - Calculate prime numbers < 10000

% time ./parrot examples/benchmarks/primes2.pir

Calculates all the prime numbers up to 10000 and prints out the number of primes and the last one found. Use PMCs, not ints.

examples/benchmarks/primes.c, examples/benchmarks/primes.pasm, examples/benchmarks/primes.pl, examples/benchmarks/primes2_i.pir, examples/benchmarks/primes2.c, examples/benchmarks/primes2.py.
|
|
|