Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Alice is trying to find a prime with 50 digits. She has an algorithm (and we wil

ID: 1890799 • Letter: A

Question

Alice is trying to find a prime with 50 digits. She has an algorithm (and we will see these
soon) to test a given number for primality, but she has a very slow machine and this is relatively
time consuming. She proposes to just write down a 50 digit number n, then look at n, n + 1,
n + 2, . . . until the test gives a prime. To save some time she will do a preliminary sieve
by discarding all even numbers and dividing by 3 and 5. Use the Prime Number Theorem to
determine the expected number of times she should run the test before having a good chance
of finding a prime.
[

Explanation / Answer

32

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote