A $n$-bit integer is an integer $x$ such that $2^{n-1} \le x < 2^n$. In [1] it is claimed without proof that a corollary of the prime number theorem is that:
For any $n > 1$, the fraction of $n$-bit integers that are prime is at least $\frac{1}{3n}$.
Can somebody point me to a proof of this?
It is (perhaps) worth noticing that a direct application of the prime number theorem allows to prove an asymptotic version of the above (with a slightly better constant). $$ \begin{align*} \lim_{n \to \infty} \frac{n \ln 2}{2^{n-1}} \bigg( \pi(2^n-1) - \pi(2^{n-1})\bigg) &= \lim_{n \to \infty} \frac{n \ln 2}{2^{n-1}} \bigg( \pi(2^n) - \pi(2^{n-1}) \bigg) \\&= \lim_{n \to \infty} \frac{n \ln 2}{2^{n-1}} \bigg( \frac{2^n}{n \ln 2} - \frac{2^{n-1}}{(n-1)\log2} \bigg)\\ & = \lim_{n \to \infty} \frac{n \ln 2}{2^{n-1}} \bigg( \frac{2^n}{2n \ln 2 } \cdot\frac{n-2}{n-1} \bigg) = 1. \end{align*} $$
Therefore $\frac{\pi(2^n-1) - \pi(2^{n-1})}{2^{n-1}} \sim \frac{1}{n \ln 2}$, and for every $\varepsilon >0$ there is some $n_0$ such that, for all $n \ge n_0$, the fraction of $n$-bit integers that are prime is at least $\frac{1-\varepsilon}{n \ln 2}$.
A not-so-elegant way to prove the the claim would be that of choosing $\varepsilon =1-\frac{\ln 2}{3} \approx 0.7689$ and finding an upper bound on $n_0$ that lies in the range for which $\pi(\cdot)$ has been computed. Are such upper bounds known?
[1] Jonathan Katz, Yehuda Lindell. Introduction to Modern Cryptography (3rd edition). CRC Press. ISBN 9781351133012.