Details
Implement primes/Atkin benchmark in C, and put it into langs/c/primes/Atkin.c.
You MUST implement it exactly in the same way as in other language examples, without any optimizations: langs/php/primes/Atkin.php, langs/c-plus-plus/primes/Atkin.cpp, langs/python/primes/Atkin.py. Add script to langs/c/benchmark.yaml. Exact logical implementation is required to correctly compare multiple languages against each other.
Here are other examples of our C code: langs/c/primes/Simple.c. Use them to see how to collect and report execution time.
Important: For fairness in benchmarking, do not add any optimizations beyond what exists in the reference implementations.
Details
Implement
primes/Atkinbenchmark in C, and put it intolangs/c/primes/Atkin.c.You MUST implement it exactly in the same way as in other language examples, without any optimizations:
langs/php/primes/Atkin.php,langs/c-plus-plus/primes/Atkin.cpp,langs/python/primes/Atkin.py. Add script tolangs/c/benchmark.yaml. Exact logical implementation is required to correctly compare multiple languages against each other.Here are other examples of our C code:
langs/c/primes/Simple.c. Use them to see how to collect and report execution time.Important: For fairness in benchmarking, do not add any optimizations beyond what exists in the reference implementations.