CS 311 project 4 -- threads, processes, primes