login
A174520
Sum of all composite numbers in-between prime numbers p(n) and p(n+2).
1
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,1
COMMENTS
2_3_4_5 -> 4, 3_4_5_6_7 -> 4+6=10, 5_6_7_8_9_10_11 -> 6+8+9+10=33, ..
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!}]
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved