Question: Determine how many prime numbers there are between 10 9 and 10 12 using the Prime Number Checking algorithm (Java). How long would it take

  1. Determine how many prime numbers there are between 109and 1012using the Prime Number Checking algorithm (Java). How long would it take your code to run?
  2. Find the performance of the best algorithms to determine if a number is prime? How does this compare to the approach above?
  3. Find the performance of the best algorithm to determine the divisors of a number? How does this surprise you?
  4. What is the approximately of how many primes there are between 109and 1012, can you find a better approach?

Requirements of the Prime Number Checking algorithm:

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 Programming Questions!