Form a sequence $(a_n)$ as follows: Let $a_1$ be any positive integer. Let $a_{n+1}$ be formed from $a_n$ by appending any decimal digit to the end of $a_1$. Determine, with proof, whether it is possible that $a_n$ is composite only finitely often (i.e. if there exists a value of $a_1$ that makes $a_n$ composite only finitely often).
The digits $0, 2, 4, 5, 6, 8$ can only be used finitely many times as otherwise one would get infinitely many composites.
The digits $1, 7$ can only be used finitely many times as, after we stop using $2, 5$ and $8$, they are the only ones to change the remainder modulo $3$ and both add $1$ to it (otherwise there would be infinitely many multiples of $3$).
Both $3$ and $9$ must be used infinitely many times because, if at some point a prime $p$ is reached, adding at most $p$ of the same digit yields another multiple of $p$.
Even with these restrictions the question seems very hard. For instance, the following are primes of length $9$: $1979339333, 1979339339$.