OFFSET
1,2
EXAMPLE
For n=10; 29 is the 10th prime. 29=29, 71=19+23+29, 101=13+17+19+23+29, 127=3+5+7+11+13+17+19+23+29. 29 and 71,101,127 are primes. so a(10)=4.
MATHEMATICA
Table[Length[Select[Accumulate[Reverse[Table[Prime[i], {i, n}]]], PrimeQ]], {n, 91}] (* Jayanta Basu, Apr 21 2013 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Naohiro Nomoto, May 01 2003
STATUS
approved