I was wondering what properties could have these numbers: $21, 221, 2221, 22221, ...$ At glance I thought this set would have infinitely many primes. Immediately I went to Python and I realized that from $21$ to $2...21$ (300 digits) the only prime is $2221$.
Therefore my next question was: is there at least one more prime? Or are them all composite?
This was my approach: $$N=1+20\sum_{i=0}^k 10^i$$
If $$k \equiv 0 \bmod{3} \rightarrow N=21, 22221, ... $$ $N$ is divisible by $3$ and it's not a prime.
If not, I have no clue. But most of them end up being divisible by a small prime like $7$, $13$ or $19$.
It seems such a trivial quiestion but so hard to answer. Does anyone have an approach to the problem? Thank you.