OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(2)=313 is a term because all digits are equal to 3 except one.
MATHEMATICA
Table[Sort[Select[FromDigits/@Flatten[Permutations/@Table[PadRight[ {n}, i, 3], {n, {1, 2, 4, 5, 7, 8}}], 1], PrimeQ]], {i, 3, 6}]//Flatten (* Harvey P. Dale, May 17 2017 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Shyam Sunder Gupta, Apr 29 2005
STATUS
approved