With[{sps=Partition[Select[Range[250], PrimeOmega[#]==2&], 2, 1]}, Total[ Select[ Range[ First[#], Last[#]], PrimeQ]]&/@sps] (* From _Harvey P. Dale, _, Sep 04 2011 *)
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”).
With[{sps=Partition[Select[Range[250], PrimeOmega[#]==2&], 2, 1]}, Total[ Select[ Range[ First[#], Last[#]], PrimeQ]]&/@sps] (* From _Harvey P. Dale, _, Sep 04 2011 *)
_Zak Seidov (zakseidov(AT)yahoo.com), _, Dec 22 2007
editing
approved
With[{sps=Partition[Select[Range[250], PrimeOmega[#]==2&], 2, 1]}, Total[ Select[ Range[ First[#], Last[#]], PrimeQ]]&/@sps] (* From Harvey P. Dale, Sep 04 2011 *)
approved
editing
Sum of primes between n-th and (n+1)-th semiprimes.
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
1,1
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).
nonn
Zak Seidov (zakseidov(AT)yahoo.com), Dec 22 2007
approved