code for starting n processes to find some primes