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.

A327277 Irregular triangle read by rows in which row n lists the first prime(n) primes.

Original entry on oeis.org

2, 3, 2, 3, 5, 2, 3, 5, 7, 11, 2, 3, 5, 7, 11, 13, 17, 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, 53, 59, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67
Offset: 1

Views

Author

Keywords

Examples

			Table begins:
  2, 3;
  2, 3, 5;
  2, 3, 5, 7, 11;
  2, 3, 5, 7, 11, 13, 17;
  2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31;
  2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41;
  ...
		

Crossrefs

Right border gives A006450.
A138117 is essentially the same triangle.

Programs

  • Mathematica
    m = 8; p = Array[Prime, Prime[m]]; Join @@ (p[[1 ;; p[[#]]]] & /@ Range[m]) (* Amiram Eldar, Sep 24 2019 *)
    Table[Take[Prime[Range[Prime[n]]],n],{n,Prime[Range[10]]}]//Flatten (* Harvey P. Dale, Oct 30 2021 *)