Suppose $N=111\dots1$ ($n$ ones). For which numbers $n$ is $N$ prime?
$n \ne 1, 3k$ is all progress I have made!
Suppose $N=111\dots1$ ($n$ ones). For which numbers $n$ is $N$ prime?
$n \ne 1, 3k$ is all progress I have made!
It is a well-known open problem to establish whether there exist infinitely many Mersenne primes, i.e., primes of the form $2^p-1$ for some prime $p$.
This question is its analogue which replaces $2$ with $10$. Indeed, if $\frac{1}{9}(10^n-1)$ is prime then $n$ is necessarily prime because $\frac{1}{9}(10^m-1)$ divides $\frac{1}{9}(10^n-1)$ whenever $m$ divides $n$.
Edit: It can be checked that $$ \{n\in [2,1000]: \frac{10^n-1}{9}\text{ is prime}\}=\{2,19,23,317\}. $$ Michael Stoker points out in the above comments also this longer OEIS sequence.
A related MSE question here.