parrotcode: Calculate prime numbers < 50000 | |
Contents | Examples |
examples/benchmarks/primes.c - Calculate prime numbers < 50000
% make examples/benchmarks/primes
% time examples/benchmarks/primes
Calculates all the prime numbers up to 50000 and prints out the number of primes and the last one found.
int main(int argc, char *argv[])
examples/benchmarks/primes.c, examples/benchmarks/primes.pasm, examples/benchmarks/primes.pl, examples/benchmarks/primes2_p.pasm, examples/benchmarks/primes2.c, examples/benchmarks/primes2.pasm, examples/benchmarks/primes2.py.
|