OFFSET
1,2
COMMENTS
For all [a,b,c] triples of consecutive terms where (a+b) is prime, do underline c. The non-underlined terms are the sequence itself.
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..14868.
Eric Angelini, A fractal sequence with prime sums
Eric Angelini, A fractal sequence with prime sums [Cached copy, with permission. Pdf file only, no color]
PROG
(PARI) A133182(find=2007, show=1, a=[1, 2], no=0, ni=2)={ while(a[ #a]!=find, a=concat(a, if(isprime(a[ #a]+a[ #a-1]), no++, a[ni++ ]))); if(show, a, #a)} /* use A133182(N) to get all terms up to first occurrence of N ; A133182(N, 0) to get only the index of that term */ \\ M. F. Hasler, Oct 17 2007
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Eric Angelini, Oct 11 2007
STATUS
approved