OFFSET
1,1
LINKS
Zak Seidov, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = Sum_{k=0..3} A000040(n+k). - Omar E. Pol, Mar 02 2020
EXAMPLE
a(7) = 17 + 19 + 23 + 29 = 88.
MAPLE
MATHEMATICA
Plus@@@Partition[Prime[Range[6! ]], 4, 1] (* Vladimir Joseph Stephan Orlovsky, Feb 18 2010 *)
PROG
(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
KEYWORD
nonn,easy
AUTHOR
Patrick De Geest, Oct 15 1998
STATUS
approved