login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A085105
Starting with prime(n) go on adding smaller primes until one gets a prime. a(n) = this prime, or 0 if no such prime exists.
1
0, 5, 0, 17, 23, 31, 41, 67, 59, 71, 83, 97, 109, 181, 131, 281, 311, 173, 439, 199, 211, 223, 373, 251, 269, 449, 883, 311, 1283, 719, 349, 587, 617, 647, 683, 439, 457, 1483, 487, 503, 839, 863, 1511, 2111, 941, 1951, 607, 1747, 661, 2203, 1123, 701, 1999
OFFSET
1,2
COMMENTS
Conjecture: Except a(3) no other term is zero.
EXAMPLE
prime(6) = 13 and 13+11+7 = 31 hence a(6) = 31.
CROSSREFS
Sequence in context: A226372 A367191 A093782 * A368061 A094031 A022902
KEYWORD
nonn
AUTHOR
Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), Jul 04 2003
EXTENSIONS
Corrected and extended by David Wasserman, Jan 27 2005
STATUS
approved