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.

A138117 Triangle read by rows: row n lists the first 2n-1 prime numbers.

Original entry on oeis.org

2, 2, 3, 5, 2, 3, 5, 7, 11, 2, 3, 5, 7, 11, 13, 17, 2, 3, 5, 7, 11, 13, 17, 19, 23, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47
Offset: 1

Views

Author

Omar E. Pol, Mar 14 2008, corrected Mar 15 2008

Keywords

Examples

			Triangle begins:
....... 2
..... 2,3,5
... 2,3,5,7,11
. 2,3,5,7,11,13,17
		

Crossrefs

Programs

  • Mathematica
    nn=10;Flatten[Table[Take[Prime[Range[2nn+1]],2n+1],{n,0,nn}]] (* Harvey P. Dale, Aug 16 2011 *)