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.

A156018 Primes of the form k^3 + k^2 + k - 1.

Original entry on oeis.org

2, 13, 83, 257, 1109, 2953, 6173, 8419, 14423, 40493, 99497, 127549, 178807, 198533, 347969, 378503, 480713, 599843, 787243, 1271483, 1417583, 1574467, 2883593, 3133597, 3397649, 4770023, 5118203, 5482927, 5671613, 6469637, 6680203
Offset: 1

Views

Author

Keywords

Examples

			13 is a term since 13 = 2^3 + 2^2 + 2 - 1.
		

Crossrefs

Cf. A125964.

Programs

  • Mathematica
    lst={};Do[p=(n^1+n^2+n^3)-1;If[PrimeQ[p],AppendTo[lst,p]],{n,7!}];lst