OFFSET
1,1
LINKS
Jean-Marc Rebert, Table of n, a(n) for n = 1..5676
EXAMPLE
8 is a term since the least prime factors of 2..8 are 2, 3, 2, 5, 2, 7, 2 and their sum 23 is prime.
MATHEMATICA
Position[Accumulate[Join[{0}, Table[FactorInteger[k][[1, 1]], {k, 2, 400}]]], _?PrimeQ] // Flatten (* Amiram Eldar, Jul 02 2022 *)
PROG
(Python)
from sympy import isprime, factorint
from itertools import accumulate, count, islice
def agen(): yield from (k for k, sk in enumerate(accumulate(min(factorint(i)) for i in count(2)), 2) if isprime(sk))
print(list(islice(agen(), 75))) # Michael S. Branicky, Jul 02 2022
(PARI) isok(k) = isprime(sum(i=2, k, factor(i)[1, 1])); \\ Michel Marcus, Jul 04 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Jean-Marc Rebert, Jul 02 2022
STATUS
approved