OFFSET
1,2
FORMULA
MATHEMATICA
nn = 34; s = Accumulate[{1}~Join~Prime@ Range[nn^2]]; {1}~Join~Array[Total@ s[[# - 1 ;; #]] &[#^2] &, nn - 1, 2] (* Michael De Vlieger, Aug 10 2023 *)
PROG
(PARI) f(n) = if (n, 1 + vecsum(primes(n-1)), 0); \\ A014284
a(n) = f(n^2) + f(n^2-1); \\ Michel Marcus, Aug 10 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 02 2023
STATUS
approved