login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A073837 Sum of primes p satisfying n <= p <= 2n. 5
2, 5, 8, 12, 12, 18, 31, 24, 41, 60, 60, 72, 72, 59, 88, 119, 119, 102, 139, 120, 161, 204, 204, 228, 228, 228, 281, 281, 281, 311, 372, 341, 341, 408, 408, 479, 552, 515, 515, 594, 594, 636, 636, 593, 682, 682, 682, 635, 732, 732, 833, 936, 936, 990, 1099, 1099 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

a(n) = A034387(2*n) - A034387(n-1); a(n) <= A179213(n). [Reinhard Zumkeller, Jul 05 2010]

LINKS

T. D. Noe, Table of n, a(n) for n = 1..10000

EXAMPLE

a(7) = 31 = 7+11+13 (sum of primes between 7 and 14).

MAPLE

for n from 1 to 150 do l := 0:for j from n to 2*n do if isprime(j) then l := l+j:fi:od:a[n] := l:od:seq(a[j], j=1..150);

MATHEMATICA

Table[Total[Select[Range[n, 2 n], PrimeQ]], {n, 56}] (* Jayanta Basu, Aug 12 2013 *)

PROG

(PARI) a(n)=sum(i=n, 2*n, i*isprime(i))

CROSSREFS

Cf. A073838.

Sequence in context: A135050 A004112 A024815 * A189531 A190347 A193767

Adjacent sequences:  A073834 A073835 A073836 * A073838 A073839 A073840

KEYWORD

nonn

AUTHOR

Amarnath Murthy, Aug 12 2002

EXTENSIONS

More terms from Sascha Kurz and Benoit Cloitre, Aug 14 2002

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 18 12:18 EDT 2019. Contains 328160 sequences. (Running on oeis4.)