OFFSET
1,1
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)
EXAMPLE
a(2)=499 is a term because all digits are equal to 9 except one.
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 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Shyam Sunder Gupta, Apr 29 2005
STATUS
approved