OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
bb={}; Do[If[IntegerDigits[n]\[Intersection]IntegerDigits[Prime[n]]\[Equal]{8}, bb=Append[bb, n]], {n, 3000}]; bb
Select[Range[2500], Intersection[IntegerDigits[#], IntegerDigits[ Prime[#]]] == {8}&] (* Harvey P. Dale, Dec 10 2015 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Jun 08 2005
STATUS
approved