OFFSET
1,1
LINKS
C. Caldwell, The first 1000 primes
FORMULA
a(n) = A034963(4n-4). - R. J. Mathar, Apr 20 2009
EXAMPLE
a(1) = prime(1) + prime(2) + prime(3) + prime(4) = 2 + 3 + 5 + 7 = 17.
a(2) = prime(5) + prime(6) + prime(7) + prime(8) = 11 + 13 + 17 + 19 = 60.
a(3) = prime(9) + prime(10) + prime(11) + prime(12) = 23 + 29 + 31 + 37 = 120.
MATHEMATICA
f[n_] := Sum[ Prime[i], {i, 4n - 3, 4n}]; Table[ f[n], {n, 45}] (* Robert G. Wilson v, Jun 01 2004 *)
PROG
(Magma) [NthPrime(4*n-3) + NthPrime(4*n-2) + NthPrime(4*n-1) + NthPrime(4*n): n in [1..50]]; // Vincenzo Librandi, Jul 25 2015
(PARI) vector(50, n, prime(4*n-3) + prime(4*n-2) + prime(4*n-1) + prime(4*n)) \\ Michel Marcus, Jul 25 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Jun Mizuki (suzuki32(AT)sanken.osaka-u.ac.jp), May 26 2004
EXTENSIONS
More terms from Robert G. Wilson v and Klaus Brockhaus, Jun 01 2004
STATUS
approved