login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A090157
Primes of the form identical digits preceded by a 9.
1
97, 911, 977, 97777, 911111, 97777777777777777777, 911111111111111111111, 97777777777777777777777777777, 911111111111111111111111111111111111111111
OFFSET
1,1
COMMENTS
The identical digits must be either 1 or 7. - Harvey P. Dale, Jun 28 2020
LINKS
MATHEMATICA
Select[ FromDigits /@ Flatten[ Table[ PadRight[{9}, i, # ] & /@ {1, 2, 3, 4, 5, 6, 7, 8, 9}, {i, 2, 50}], 1], PrimeQ[ # ] &]
Select[Union[Flatten[Table[FromDigits[PadRight[{9}, n, d]], {n, 2, 50}, {d, {1, 7}}]]], PrimeQ] (* Harvey P. Dale, Jun 27 2020 *)
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Nov 22 2003
STATUS
approved