OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(5) = prime(5) + prime(1) = 11 + 2 = 13.
MATHEMATICA
Table[Total[Prime[Range[n, 1, -4]]], {n, 50}] (* Harvey P. Dale, Jun 27 2021 *)
PROG
(PARI) a(n) = if (n<4 || n%4, sum(k=0, n\4, prime(n - 4*k)), sum(k=0, n\4 - 1, prime(n - 4*k))) \\ Michel Marcus, Jun 30 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Jorge Coveiro, Dec 26 2004
EXTENSIONS
More terms from Michel Marcus, Jun 30 2013
STATUS
approved