OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(4)=47 is a term because this is largest of three consecutive primes i.e. 41,43 and 47 whose sum of digits is prime i.e. 4+1=5, 4+3=7 and 4+7=11.
MATHEMATICA
Prime[#]&/@SequencePosition[Table[If[PrimeQ[Total[IntegerDigits[p]]], 1, 0], {p, Prime[Range[500]]}], {1, 1, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 02 2020 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Shyam Sunder Gupta, May 14 2005
STATUS
approved