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.

A174819 Primes of form n^4 + n^2 - 1.

Original entry on oeis.org

19, 89, 271, 4159, 10099, 20879, 28729, 38611, 50849, 130681, 391249, 457651, 1049599, 1187009, 1501849, 1875529, 3113459, 3420649, 3750031, 4102649, 6767801, 7893289, 9837631, 10559249, 11319859, 14780179, 17854849, 21385999, 31646249
Offset: 1

Views

Author

Michel Lagneau, Dec 01 2010

Keywords

Comments

Primes of the form A071253(n) - 1. - Altug Alkan, Mar 24 2017

Examples

			a(2) = 89 is in the sequence because 3^4 + 3^2 - 1 = 89 is prime.
		

Crossrefs

Cf. A071253.

Programs

  • Maple
    select(isprime, [seq(n^4+n^2-1, n=1..1000)]); # Robert Israel, Mar 24 2017
  • Mathematica
    a={}; Do[p=n^4+n^2-1; If[PrimeQ[p], AppendTo[a, p]], {n, 10^2}]; Print[a];
  • PARI
    for(n=1, 1e3, if(isprime(p=n^4+n^2-1), print1(p ", "))) \\ Altug Alkan, Mar 24 2017