TITLE: Is every natural number the truncation of a prime?
QUESTION [13 upvotes]: E.g. $30$ can be "extended" to a prime, namely 30$19$, and $575$ can be extended to a prime, namely 575$4853343$. Is this true for every natural number?
To make things precise:
Let $n\in\mathbb{N}$. Does there always exist a prime $p=\sum_{i=0}^k d_i\cdot 10^i$, where $k\in\mathbb{N}_0$ and $d_i\in\{0,\ldots, 9\}$, $d_k\neq 0$, $i=0,\ldots, k$, such that $n=\sum_{i=l}^k d_i\cdot 10^{i-l}$ for some $l\leq k$?
I thought of this problem randomly and find it interesting. My guess is that it is known, studied, but perhaps unsolved. Or trivial in a non-trivial way.

REPLY [2 votes]: It's a big hammer, but at least for the purposes of thinking through what sorts of results should and shouldn't be true of the primes, it's worth noting that this follows straightforwardly from the prime number theorem (PNT). In fact the PNT implies this asymptotic strengthening of Bertrand's postulate:

Claim: For any $\epsilon > 0$, there exists some $n_{\epsilon}$ such that for all $n \ge n_{\epsilon}$, there always exists a prime between $n$ and $(1 + \epsilon) n$.

Proof. The PNT says that $\pi(n) \sim \frac{n}{\log n}$, which means that
$$\lim_{n \to \infty} \frac{\pi((1 + \epsilon) n}{\pi(n)} = \lim_{n \to \infty} \frac{(1 + \epsilon) n \log n}{n \log (1 + \epsilon) n} = (1 + \epsilon)$$
so for some $n_{\epsilon}$ (large enough so that the above sequence ends up within, say, $\frac{\epsilon}{2}$ of its limit) we must eventually have that $\frac{\pi(1 + \epsilon)n)}{\pi(n)}$ is strictly greater than $1$ for all $n \ge n_{\epsilon}$, as desired. $\Box$
(The argument is insensitive to the precise meaning of "between" - strictly speaking what it shows is that there's a prime larger than $n$ and less than or equal to $(1 + \epsilon) n$, but by tweaking epsilon you can improve "less than or equal to" to "less than.")
This gives your desired result as follows. If $a$ is any positive integer, we want to know that there eventually exists a prime strictly between $a \cdot 10^d$ and $(a + 1) \cdot 10^d$. But this follows from the above claim by taking $\epsilon = \frac{a + 1}{a}$.
Oldboy uses a stronger result which at least roughly says that there's eventually a prime between $n$ and something like $n + 3n^{2/3}$ (although I don't know if it's strictly equivalent to a statement like this) and conjecturally it ought to be possible to improve this to something like $n + \sqrt{n}$.

I'll also note that when I saw only the title of your question I thought it referred to truncation of digits on the left rather than on the right; in this case it's also true that every natural number is the truncation of a prime, but the proof instead uses Dirichlet's theorem on primes in arithmetic progressions.