Your task is to convert the Java Prime Parallel program attached, the idea of the solution was to split the integer limit into many tasks of size 1000 and create job queue, where a thread pool scans the job pool and work each task, at the end the sum of all results are added up and reported.
Make sure to include timing to your code, you need to submit two solutions using MPI and OpenMP:
1. OpenMP C file and results of execution
2. MPI C file and results of execution
Students succeed in their courses by connecting and communicating with an expert until they receive help on their questions
Consult our trusted tutors.