A pretty good simple approx. formula for inverse of the Logharitmic integral function is:
$li^{-1}(x)\approx -\frac{1}{li(\frac{1}{x})}$
It is also an acurate approx. for the n-th prime number
$p_n \approx -\frac{1}{li(\frac{1}{n})}$.
Table ( integer parts ) :
$n\qquad\qquad 10\qquad 10^2\qquad\quad 10^3\qquad\quad 10^4\quad\qquad 10^5\qquad\qquad 10^6$
$li^{-1}(n)\qquad 20\quad 488\qquad 7762\qquad 104270\qquad 1298170\qquad 15479100$
$-\frac{1}{li(\frac{1}{n})}\quad 30\qquad 546\qquad 7803\qquad 101264\qquad 1244281\qquad 14755260$
$p_n\qquad\quad 29\qquad 541\qquad 7919\qquad 104729\qquad 1299709\qquad 15485863$
Is this approx. usefull and how to estimate the error $p_{n}-(-\frac{1}{li(\frac{1}{n})})$ ? Is it allways positive for big enough $n$?