OFFSET
1,1
FORMULA
a(n) ~ n log n
MATHEMATICA
okQ[n_] := Module[{d = Union[IntegerDigits[n]]}, Length[Intersection[d, {2, 3, 5, 7}]] > 0 && Length[Intersection[d, {1, 4, 6, 8, 9}]] > 0]; Select[Prime[Range[100]], okQ] (* T. D. Noe, Jan 21 2011 *)
pdQ[n_]:=Module[{idn=Select[IntegerDigits[n], #!=0&]}, Count[idn, _?PrimeQ]>0&&Count[idn, _?(!PrimeQ[#]&)]>0]; Select[Prime[Range[100]], pdQ] (* Harvey P. Dale, Jan 31 2013 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Omar E. Pol, Dec 03 2008
EXTENSIONS
Corrected and extended by Harvey P. Dale, Jan 31 2013
STATUS
approved