5. Given a large integer N, you generate prime numbers in the follow- ing way: pick a random n < N, run a primality test
Posted: Mon May 09, 2022 10:39 am
5. Given a large integer N, you generate prime numbers in the follow- ing way: pick a random n < N, run a primality test on it, and try again. Suppose your primality test is completely accurate; what's the probability that you find at least one prime in 4 tries? (You're allowed to assume the Prime Number Theorem, which basically says there are about N/log(N) primes less than N)