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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A034963 Sums of four consecutive primes. 41
17, 26, 36, 48, 60, 72, 88, 102, 120, 138, 152, 168, 184, 202, 220, 240, 258, 272, 290, 306, 324, 348, 370, 390, 408, 420, 432, 456, 480, 508, 534, 556, 576, 596, 620, 638, 660, 682, 700, 724, 744, 762, 780, 800, 830, 860, 890, 912, 928, 942, 964, 988, 1012 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..53.

EXAMPLE

a(7) = 17 + 19 + 23 + 29 = 88.

MAPLE

A034963 := proc(n)

    add(ithprime(i), i=n..n+3) ;

end proc: # R. J. Mathar, Jun 06 2013

MATHEMATICA

Plus@@@Partition[Prime[Range[6! ]], 4, 1] (* Vladimir Joseph Stephan Orlovsky, Feb 18 2010 *)

PROG

(Sage) BB = primes_first_n(59) list = [] for i in range(55): list.append(BB[i]+BB[i+1]+BB[i+2]+BB[i+3]) list # Zerinvary Lajos, May 14 2007

(MAGMA) [&+[ NthPrime(n+k): k in [0..3] ]: n in [1..90] ]; /* Vincenzo Librandi, Apr 03 2011 */

(PARI) a(n)=my(p=prime(n)); p+sum(i=1, 3, p=nextprime(p+1)) \\ Charles R Greathouse IV, Jul 01 2013

CROSSREFS

Cf. A001043, A011974, A034707.

Sequence in context: A212909 A273785 A171169 * A120143 A031204 A085051

Adjacent sequences:  A034960 A034961 A034962 * A034964 A034965 A034966

KEYWORD

nonn,easy

AUTHOR

Patrick De Geest, Oct 15 1998

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified April 28 16:04 EDT 2017. Contains 285578 sequences.