login
A345977
a(n) is the first term in the n-term sum corresponding to A345976(n).
2
2, 5, 331, 89, 5297, 11149, 2960267, 6189857, 1645492081, 1490842261, 763377367829, 1692363920551
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