OFFSET
1,1
COMMENTS
2+3+4+5=14, 3+4+5+6+7=25, 5+6+7+8+9+10+11=56, ..
MATHEMATICA
f[n_, x_]:=n*x+x*(x+1)/2; Table[Prime[n]+f[Prime[n], Prime[n+2]-Prime[n]-1]+Prime[n+2], {n, 5!}]
sm[{a_, b_, c_}]:=(c-a+1) (a+c)/2; sm/@Partition[Prime[Range[50]], 3, 1] (* Harvey P. Dale, Mar 11 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Mar 21 2010
STATUS
approved