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.

A174519 Sum of 3 consecutive primes and of all composite numbers in-between.

Original entry on oeis.org

14, 25, 56, 70, 98, 112, 140, 264, 243, 297, 396, 280, 308, 528, 689, 513, 567, 726, 490, 675, 858, 924, 1350, 1235, 700, 728, 742, 770, 2242, 2318, 1452, 1215, 1859, 1885, 1377, 2041, 1782, 1848, 2249, 1593, 2405, 2431, 1358, 1372, 3060, 5275, 3723, 1582
Offset: 1

Views

Author

Keywords

Comments

2+3+4+5=14, 3+4+5+6+7=25, 5+6+7+8+9+10+11=56, ..

Crossrefs

Programs

  • 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 *)