OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Prime[Range[4 10^4]], Complement[IntegerDigits[#], {1, 4, 8}]=={} &]
Table[Select[10#+1&/@(FromDigits/@Tuples[{1, 4, 8}, n]), PrimeQ], {n, 5}]// Flatten (* Harvey P. Dale, Jun 08 2019 *)
PROG
(Magma) [p: p in PrimesUpTo(5*10^5) | Set(Intseq(p)) subset [1, 4, 8]];
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Vincenzo Librandi, Jul 23 2015
STATUS
approved