parrotcode: Calculate prime numbers < 50000 | |
Contents | Examples |
examples/benchmarks/primes.pasm - Calculate prime numbers < 50000
% time ./parrot examples/benchmarks/primes.pasm
Calculates all the prime numbers up to 50000 and prints out the number of primes, the last one found, and the time taken.
examples/benchmarks/primes.c, examples/benchmarks/primes_i.pasm, examples/benchmarks/primes.pl, examples/benchmarks/primes.rb, examples/benchmarks/primes2_p.pasm, examples/benchmarks/primes2.c, examples/benchmarks/primes2.pasm, examples/benchmarks/primes2.py.
|