Suppose we choose two random distinct numbers from $\{1,2,\cdots,n\}$.
I learned that the approximate number of primes less than or equal to $n$ is given by
$\frac{n}{ln(n)}$.
Assuming that there are approximately $2n$ possible sums, the number of primes is roughly
$\frac{2n}{ln(2n)}$
and so the probability that the sum of two random numbers is prime is given by
$\frac{2n}{ln(2n)}\cdot\frac{1}{2n} = \frac{1}{ln(2n)}$.
However, it seems like the probability is actually closer to $\frac{1}{ln(n)}$.
I think I might be misunderstanding something.
Any advice would be appreciated.
Thank you for reading.