A077279 Last prime of n-th group of successive primes in A073684.
3, 11, 29, 41, 61, 73, 89, 127, 173, 197, 251, 283, 311, 353, 383, 401, 421, 439, 463, 487, 503, 523, 569, 599, 983, 1153, 1511, 1543, 1601, 1621, 1721, 1741, 1783, 1823, 1871, 1901, 2029, 2239, 2267, 2281, 2311, 2341, 2383, 2447, 2503, 2539, 2551, 2591
Offset: 1
Keywords
Programs
-
Python
from itertools import count, islice from sympy import isprime, nextprime def agen(): # generator of terms s, i, p = 0, 1, 2 while True: while not(isprime(s:=s+p)) or i < 2: i, p = i+1, nextprime(p) yield p s, i, p = 0, 1, nextprime(p) print(list(islice(agen(), 48))) # Michael S. Branicky, May 23 2025
Comments