OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(2)=337 is a term because this is Largest of five consecutive primes i.e. 311,313,317,331 and 337, whose sum of digits is prime i.e. 3+1+1=5, 3+1+3=7, 3+1+7=11, 3+3+1=7 and 3+3+7=13.
MATHEMATICA
Transpose[Select[Partition[Prime[Range[2000]], 5, 1], AllTrue[Total/@ (IntegerDigits/@ #), PrimeQ]&]]//Last (* or *) Prime[#]&/@Transpose[ SequencePosition[ Table[ If[ PrimeQ[Total[IntegerDigits[n]]], 1, 0], {n, Prime[Range[2000]]}], {1, 1, 1, 1, 1}]][[2]] (* The programs use the AllTrue and SequencePosition functions from Mathematica version 10 *) (* Harvey P. Dale, Jul 14 2016 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Shyam Sunder Gupta, May 14 2005
EXTENSIONS
Definition clarified by Harvey P. Dale, Jul 14 2016
STATUS
approved