Sieve of Eratosthenes in a multi-threaded environment.