OFFSET
1,1
COMMENTS
a(1)=4, then a(n) is the least semiprime > a(n-1) such that a(1)+...+a(n) is semiprime.
LINKS
Zak Seidov, Table of n, a(n) for n = 1..89
EXAMPLE
4+6=10=2*5, 10+15=25=5*5, 25+26=51=3*17.
MATHEMATICA
s={4}; a=4; Do[m=a+1; While[2!=PrimeOmega[m]||2!=PrimeOmega[m+a], m++]; AppendTo[s, m]; a=m+a, {50}]; s
PROG
(PARI){s=[4]; a=4;
for(k=1, 50, m=a+1while(2<>bigomega(m)||2<>bigomega(m+a), m++);
s=concat(s, m); a=m+a); s}
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 05 2015
STATUS
approved