A055559 Primes of the form 2999...999.
2, 29, 2999, 2999999, 29999999, 29999999999999999999, 2999999999999999999999999999, 29999999999999999999999999999999999999999999, 29999999999999999999999999999999999999999999999999999999
Offset: 1
Examples
3*10^k - 1 is prime for k = 0, 1, 3, 6, 7, 19, ... (A056703). k gives the number of 9's in these numbers.
Programs
-
Mathematica
Select[Table[FromDigits[PadRight[{2}, n, 9]], {n, 60}], PrimeQ] (* Harvey P. Dale, Jan 22 2023 *)
Formula
Extensions
Erroneous Formula entry removed by Jon E. Schoenfield, Jan 14 2018
Extended by Harvey P. Dale, Jan 22 2023
Comments