Prime number calculation with MPI
16:43:01 jade > mpic++ -std=c++11 mpiprime.cpp -o mpiprime
16:43:39 jade > mpiexec -n 4 ./mpiprime
Number given: 100000
Number of primes: 9592
Sum of primes: 454396537
Sum mod 123: 97
Time spent: 0.612129
16:43:42 jade > mpiexec -n 4 ./mpiprime
Number given: 100000
Number of primes: 9592
Sum of primes: 454396537
Sum mod 123: 97
Time spent: 0.687557
16:43:42 jade > mpiexec -n 4 ./mpiprime
Number given: 10000000
Number of primes: 664579
Sum of primes: 3203324994356
Sum mod 123: 5
Time spent: 8319.9