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