OFFSET
1,1
LINKS
Donovan Johnson, Table of n, a(n) for n = 1..1000
EXAMPLE
For n=10; 29 is the 10th prime, largest prime in the sum = 29. 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. 127 is the greatest prime, so a(10)=127.
PROG
(PARI) for(n=1, 1000, s=0; forstep(j=n, 1, -1, s=s+prime(j); if(isprime(s), p=s)); write("b082534.txt", n " " p)) /* Donovan Johnson, Apr 10 2013 */
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Naohiro Nomoto, May 02 2003
STATUS
approved