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.