OFFSET
1,1
COMMENTS
Partial sums of a(1) = 2; for n > 1, a(n) = smallest prime p such that p - a(n-1) = a^b for some positive integers a,b > 1. The subsequence of primes in the partial sums begins: 2, 13, 733, 3413, 4523, 6983.
FORMULA
a(n) = Sum_{i=1..n} A079062(i).
EXAMPLE
a(20) = 2 + 11 + 19 + 23 + 31 + 47 + 79 + 83 + 211 + 227 + 263 + 271 + 307 + 311 + 347 + 379 + 383 + 419 + 547 + 563 = 4523 is prime.
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan Vos Post, May 09 2010
EXTENSIONS
More terms from R. J. Mathar, May 24 2010
STATUS
approved