Probability in Computer Science · Randomized Algorithms
Lesson 6
Below, we design an efficient randomized algorithm for the string equality problem. This protocol needs to select a random prime number.
Problem. Test your intuition!
Take a random integer from \([n]\). What is the probability that it is prime?
5 points
a constant
about \(\frac{1}{\ln n}\)
about \(\frac{1}{\sqrt{n}}\)
about \(\frac{1}{n}\)