OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 5 because the sum of first 5 primes is 28 = 2^2 * 7 which has exactly three prime power factors (not including 1).
a(2) = 13 because the sum of first 13 primes is 238 = 2 * 7 * 17 which has exactly three prime power factors (not including 1).
a(3) = 20 because the sum of first 20 primes is 639 = 3^2 * 71.
MATHEMATICA
ps = 0; t = {}; Do[ps = ps + Prime[n]; If[Total[Transpose[FactorInteger[ps]][[2]]] == 3, AppendTo[t, n]], {n, 300}]; t (* T. D. Noe, Jun 27 2012 *)
PROG
(PARI) list(lim)=my(v=List(), k, s); forprime(p=2, prime(lim\1), k++; if(bigomega(s+=p)==3, listput(v, k))); Vec(v) \\ Charles R Greathouse IV, Feb 05 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jonathan Vos Post, Jun 19 2012
STATUS
approved