A multithreaded implementation of the Sieve of Eratosthenes