High-performance implementation of the sieve of Eratosthenes algorithm