A105975 Near-repdigit primes with 9 as repeated digit.
199, 499, 599, 919, 929, 991, 997, 1999, 2999, 4999, 8999, 9199, 9929, 9949, 49999, 59999, 79999, 94999, 98999, 99929, 99989, 99991, 199999, 599999, 799999, 989999, 991999, 999199, 999499, 999599, 999959, 999979, 2999999, 4999999, 9899999
Offset: 1
Examples
a(2)=499 is a term because all digits are equal to 9 except one.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
- Brady Haran and Simon Pampena, Glitch Primes and Cyclops Numbers, Numberphile video (2015)
Programs
-
Mathematica
Sort[Select[Flatten[Table[FromDigits/@(Flatten[Permutations/@Table[ Join[{n},PadRight[{},i,9]],{n,{1,2,4,5,7,8}}],1]),{i,2,6}]],PrimeQ]] (* Harvey P. Dale, May 07 2015 *)