OFFSET
1,1
EXAMPLE
The sums of the first n decimal places of Catalan's constant are listed in A099616: 9, 10, 15, 24, 30, 35, 40, 49, 53, 54, 61, ... Of these, the first one that is prime is 53 which is the 9th term. The first term in our sequence is therefore 9. The partial sum 61 is also prime and this appears in the 11th place, so the second term of our sequence is 11.
MATHEMATICA
Flatten[Position[Accumulate[RealDigits[N[Catalan, 500]][[1]]], _?PrimeQ]] (* Harvey P. Dale, May 10 2011 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Mark Hudson (mrmarkhudson(AT)hotmail.com), Dec 15 2004
STATUS
approved