MPI program : find prime numbers in range