login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A174816 Numbers n such that n^4 + n^2 - 1 is prime. 1
2, 3, 4, 8, 10, 12, 13, 14, 15, 19, 25, 26, 32, 33, 35, 37, 42, 43, 44, 45, 51, 53, 56, 57, 58, 62, 65, 68, 75, 77, 80, 84, 90, 91, 102, 103, 106, 108, 119, 122, 124, 139, 141, 143, 147, 152, 155, 164, 167, 168, 176, 177, 178, 196, 197, 198, 201, 202, 206, 208, 217, 222, 234, 235 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
for n=2, a(2) = 3 is in the sequence because 3^4 + 3^2 - 1 = 89 is prime.
MATHEMATICA
lst={}; Do[If[PrimeQ[n^4+n^2-1], AppendTo[lst, n]], {n, 400}]; lst
Select[Range[250], PrimeQ[#^4+#^2-1]&] (* Harvey P. Dale, Aug 24 2011 *)
PROG
(PARI) is(n)=isprime(n^4+n^2-1) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
Sequence in context: A047456 A279000 A073465 * A161494 A356641 A296161
KEYWORD
nonn,easy
AUTHOR
Michel Lagneau, Dec 01 2010
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)