Updated threadedprimes.c