A174819 Primes of form n^4 + n^2 - 1.
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
Keywords
Examples
a(2) = 89 is in the sequence because 3^4 + 3^2 - 1 = 89 is prime.
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
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
Comments