cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A174520 Sum of all composite numbers in-between prime numbers p(n) and p(n+2).

Original entry on oeis.org

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

Views

Author

Keywords

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, ..

Crossrefs

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!}]