OFFSET
1,1
COMMENTS
See A334355 for a description of the rules determining a(n). This sequence follows the same rules except that all terms must be prime.
Note that as the sequence starts with 2,7,3,... where 2+7+1=10 is a nonprime and 7+3+1=11 is a prime, like A334355 the terms in this sequence are therefore locked into a pattern of alternating pairs which when 1 is added form a nonprime and then a prime.
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 2, the smallest prime.
a(2) = 7 as a(1)+a(2) = 2+7 = 9 is a composite. Note that a(2) could not be 4 or 6 as only prime numbers are allowed, nor could it be 3 or 5 as 2+3=5 is a prime and 2+5=7 is a prime.
a(3) = 3 as a(2)+a(3) = 7+3 = 10 is a composite, and 3 is the smallest prime not yet appearing that sums with 7 to form a composite.
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon and Eric Angelini, Apr 30 2020
STATUS
approved