Multithreaded prime sieve