OFFSET
1,2
PROG
(PARI) p(n) = if (n==0, 1, prime(n));
a(n) = sum(i=0, n-1, sum(j=i+1, n, (p(j)-p(i))^2));
\\ Michel Marcus, Mar 23 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(9) corrected by Sean A. Irvine, Jul 13 2019
Name edited by Michel Marcus, Jul 17 2019
STATUS
approved