Solution for the parallel processing problem, compute the count of prime number is first N numbers