OFFSET
1,2
EXAMPLE
For n=5; 11 is the 5th prime. 11=11, 13= 2+11, 19= 3+5+11, 23= 2+3+7+11 = 5+7+11. 11 and 13,19,23 are primes. so a(5)=4.
PROG
(PARI) limit = 70; M = sum(i = 1, limit, prime(i)); v = vector(M); primeSum = 0; forprime (n = 1, prime(limit), count = 1; forstep (i = primeSum, 1, -1, if (v[i], if (isprime(i + n), count = count + 1); v[i + n] = 1)); v[n] = 1; print(count); primeSum = primeSum + n)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Naohiro Nomoto, May 02 2003
EXTENSIONS
More terms from David Wasserman, Sep 16 2004
STATUS
approved