Details
Implement primes/Atkin benchmark in Kotlin, and put it into langs/kotlin/primes/Atkin-JVM.kt and langs/kotlin/primes/Atkin-Native.kt.
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/kotlin/benchmark.yaml. Exact logical implementation is required to correctly compare multiple languages against each other.
Here are other examples of our Kotlin code: langs/kotlin/treap/Naive-JVM.kt, langs/kotlin/primes/Simple-JVM.kt. 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 Kotlin, and put it intolangs/kotlin/primes/Atkin-JVM.ktandlangs/kotlin/primes/Atkin-Native.kt.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/kotlin/benchmark.yaml. Exact logical implementation is required to correctly compare multiple languages against each other.Here are other examples of our Kotlin code:
langs/kotlin/treap/Naive-JVM.kt,langs/kotlin/primes/Simple-JVM.kt. 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.