OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(414) = 99551 because its index, 9551, the sum, 29 and number, 5, of digits are all primes.
MATHEMATICA
Select[Prime[Range[200]], PrimeQ[Length[IntegerDigits[ # ]]]&&PrimeQ[Plus@@IntegerDigits[ # ]]&]
Select[Prime[Range[1600]], AllTrue[{PrimePi[#], Total[IntegerDigits[#]], IntegerLength[ #]}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Sep 15 2019 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Zak Seidov, Jul 06 2005
STATUS
approved