OFFSET
1,1
COMMENTS
"SOD" = "sum of digits".
FORMULA
Individually sum the digits of both prime index and associated prime. If both sums are prime and the sum of the index is the next prime of the prime SOD, add to sequence.
EXAMPLE
313 is a term, 65 is the index of the prime 313. The SOD(65) = 11. The SOD(313) = 7. 11 is the next prime after 7.
MATHEMATICA
Select[Range[25000], PrimeQ[#] && PrimeQ[Plus @@ IntegerDigits[#]] &&
NextPrime[Plus @@ IntegerDigits[#]] == Plus @@ IntegerDigits[PrimePi[#]] &] (* Tanya Khovanova, Mar 16 2021 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Enoch Haga, Mar 18 2006
EXTENSIONS
Offset changed to 1 by Alois P. Heinz, Mar 16 2021
STATUS
approved