OFFSET
1,1
COMMENTS
Zero, five, and seven never appear as a digit of any of the terms of this sequence. - Harvey P. Dale, Jul 17 2013
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
f[ n_ ] := 1/n a[ n_ ] := Apply[ Plus, Map[ f, IntegerDigits[ n ] ] ] b[ n_ ] := Apply[ Plus, IntegerDigits[ n ] ] Select[ Range[ 100000 ], FreeQ[ IntegerDigits[ # ], 0 ] && PrimeQ[ a[ # ] ] && PrimeQ[ b[ # ] ] && PrimeQ[ # ] & ]
sdpQ[n_]:=Module[{idn=IntegerDigits[n]}, Min[idn]>0&&And@@PrimeQ[{Total[ idn], Total[ 1/idn]}]]; Select[Prime[Range[10000]], sdpQ] (* Harvey P. Dale, Jul 17 2013 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Santi Spadaro, Oct 19 2001
STATUS
approved