This is a small collection of sieves.
- The first is in pure Python, and is #!'d to pypy3.
- The second is in CPython with numpy.
- The third is in Java.
- The fourth runs on micropython, a python implementation intended for embedded systems that also runs on Linux.
- The fifth is is in Rust, and is the fastest version - even faster than Java.
Like any prime number sieve, these will compute the primes beneath a particular number.
You can obtain them here.
Hits: 2801
Timestamp: 2024-11-21 01:14:20 PST
Back to Dan's tech tidbits
You can e-mail the author with questions or comments: