OFFSET
1,1
EXAMPLE
See A345976.
PROG
(Python)
from sympy import nextprime, prime, primefactors, primerange
def a(n):
plst = [p for p in primerange(1, prime(n)+1)]
while len(primefactors(sum(plst))) != n:
plst = plst[1:] + [nextprime(plst[-1])]
return plst[0]
print([a(n) for n in range(1, 7)]) # Michael S. Branicky, Jul 16 2021
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Hugo Pfoertner, Jul 16 2021
EXTENSIONS
a(8)-a(10) from Michael S. Branicky, Jul 16 2021
a(11)-a(12) from Martin Ehrenstein, Jul 17 2021
STATUS
approved