Question: Q1: Write a program that finds all the prime numbers between 2 and 10,000 using Sieve of Eratosthenes scheme. Your program should count the number

 Q1: Write a program that finds all the prime numbers between

Q1: Write a program that finds all the prime numbers between 2 and 10,000 using Sieve of Eratosthenes scheme. Your program should count the number of prime numbers in that range. Parallelize your code using openMP with different number of threads. Experiment with different scheduling strategies of the loop iterations (e.g., static, dynamic, guided, with different chunk sizes(at least 5)). Time your execution for different number of threads (28)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!