A362882 Number of even numbers generated by adding two distinct odd primes <= prime(n+1).
0, 1, 3, 6, 8, 11, 14, 17, 20, 25, 28, 33, 37, 40, 44, 47, 53, 57, 62, 66, 70, 75, 79, 85, 89, 93, 98, 102, 106, 113, 117, 122, 129, 134, 140, 145, 150, 157, 161, 166, 172, 176, 181, 186, 191, 196, 202, 210, 214, 221, 225, 230, 236, 241, 245, 248, 256, 264
Offset: 1
Keywords
Examples
For n = 3, the primes are 3, 5 and 7. 3 + 5 = 8, 3 + 7 = 10 and 5 + 7 = 12 are all distinct even numbers, so a(3) = 3.
Crossrefs
First differences give A083060.
Programs
-
Python
from sympy import nextprime from itertools import islice def agen(): # generator of terms plst, s, p = [3], set(), 3 while True: yield len(s) p = nextprime(p) s.update(p+pi for pi in plst) plst.append(p) print(list(islice(agen(), 60))) # Michael S. Branicky, May 07 2023