A174520 Sum of all composite numbers in-between prime numbers p(n) and p(n+2).
4, 10, 33, 39, 57, 63, 81, 193, 160, 200, 287, 159, 177, 385, 530, 340, 380, 527, 279, 452, 623, 673, 1081, 948, 399, 417, 423, 441, 1893, 1947, 1057, 808, 1434, 1446, 920, 1570, 1295, 1345, 1730, 1060, 1854, 1866, 777, 783, 2453, 4642, 3062, 903, 921, 1873
Offset: 1
Keywords
Programs
-
Mathematica
f[n_,x_]:=n*x+x*(x+1)/2;Table[f[Prime[n],Prime[n+2]-Prime[n]-1]-Prime[n+1],{n,5!}]
Comments