[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A133412
Sum of primes between n-th and (n+1)-th semiprimes.
0
5, 7, 0, 24, 0, 36, 0, 23, 0, 60, 0, 0, 37, 0, 84, 47, 0, 53, 0, 0, 120, 0, 67, 144, 0, 79, 83, 0, 0, 89, 0, 0, 0, 301, 216, 113, 0, 0, 0, 0, 0, 127, 131, 0, 276, 0, 0, 0, 0, 300, 157, 0, 0, 163, 167, 173, 0, 360, 0, 0, 384, 396, 0, 0, 0, 0, 0, 211, 0, 0, 0, 0, 0, 0, 223, 689, 0, 480, 0
OFFSET
1,1
EXAMPLE
a(1)=5 because between s(1)=4 and s(2)=6 there is one prime 5,
a(2)=7 because between s(2)=6 and s(3)=9 there is one prime 7,
a(3)=0 because between s(3)=9 and s(4)=10 there is no primes;
a(4)=24 because between s(4)=10 and s(5)=14 there are two primes 11 and 13 sum of which is 24, (s(n)=n-th semiprime).
MATHEMATICA
With[{sps=Partition[Select[Range[250], PrimeOmega[#]==2&], 2, 1]}, Total[ Select[ Range[ First[#], Last[#]], PrimeQ]]&/@sps] (* Harvey P. Dale, Sep 04 2011 *)
CROSSREFS
Sequence in context: A332328 A021950 A072417 * A111833 A011378 A329346
KEYWORD
nonn
AUTHOR
Zak Seidov, Dec 22 2007
STATUS
approved