Primes with digits only 1

2.6k Views Asked by At

Let $Y(k)$ be the number consisting of $1$, repeated $k$ times. We know that $Y(2) =11$ is prime. It so happens that $Y(19)$ and $Y(23)$ are also prime.

Are there any more?

Regards,

David

1

There are 1 best solutions below

7
On

To summarize the comments, the repunit $$Y(k)=\frac{10^k-1}9,$$ the number $11...111$ consisting of $k$ copies of the digit $1,$ is known to be prime for

$k=2, 19, 23, 317,$ and $1031.$

Source: The On-Line Encyclopedia of Integer Sequences.