6

Let $p_n$ be the $n$th prime. If $\pi(n)\sim \dfrac{n}{\log (n)}$ then $p_n\sim n\log n$ (Hardy 1938). A closer approximation is $\pi(n)\sim\text{Li}(n)$. Is there a similarly improved definition for $p_n$?

NB - I felt this was intrinsically a different question to this one, and possibly an extension of this one.

martin
  • 9,168

2 Answers2

6

Yes, see e.g. P. Dusart: The kth prime is greater than k(log k + log log k - 1) for k>=2, Math. Comp. 68, p 411, 1999, or online at http://functions.wolfram.com/13.03.06.0004.01:

$$p_n \approx n \left(\log(n) + \log(\log(n)) - 1 + \frac{\log(\log(n)) - 2}{\log(n)}\\ - \frac{\log(\log(n))^2 - 6 \log(\log(n)) + 11}{2 \log(n)^2} \;+ \dots\right),\quad n>2 $$

gammatester
  • 19,147
4

See also The n-th prime asymptotically by Juan Arias de Reyna and Toulisse Jeremy.

lhf
  • 221,500