I have a program which uses MPI_Scatter() and MPI_Gather(). The program take as input an integer N and return the prime number from 2 to N. I create an array with the number fro
If you have to distribute an array of numbers, that can not be equally distributed to all processes, use MPI_Scatterv instead.