A185846 Primes in A002049.
3, 7, 59, 197, 373, 701, 1009, 1571, 2749, 3581, 5701, 5881, 6247, 8269, 9397, 14369, 15881, 31019, 32707, 41801, 47269, 53633, 70177, 81931, 84701, 93239, 118369, 131213, 133873, 138373, 147661, 149561, 161159, 191929, 194069, 203857, 221813, 252823, 290161, 298201
Offset: 1
Examples
a(3) = A002049(8) = 59 = the 17th prime.
Links
- Chai Wah Wu, Table of n, a(n) for n = 1..8849
Crossrefs
Cf. A002049.
Programs
-
Python
from itertools import count, accumulate, islice from collections import deque from sympy import isprime def A185846_gen(): # generator of terms aset, alist, c = set(), deque(), 0 for k in count(1): if k in aset: aset.remove(k) else: c += k if isprime(c): yield c aset |= set(k+d for d in accumulate(alist)) alist.appendleft(k) A185846_list = list(islice(A185846_gen(),40)) # Chai Wah Wu, Sep 01 2025
Extensions
More terms from Nathaniel Johnston, Feb 09 2011