The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A236759 Numbers n such that n^4+n-1 is prime. 4

%I #10 Jul 15 2020 13:15:45

%S 2,3,6,9,10,12,13,16,17,20,23,26,28,31,33,40,43,44,54,58,72,77,92,93,

%T 98,105,110,117,119,120,122,125,132,143,157,164,182,201,204,205,229,

%U 231,266,275,279,286,288,290,292,293,304,309,318

%N Numbers n such that n^4+n-1 is prime.

%e 98^4 + 98 - 1 = 92236913 is prime. Thus, 98 is a member of this sequence.

%t Select[Range[400],PrimeQ[#^4+#-1]&] (* _Harvey P. Dale_, Jul 15 2020 *)

%o (Python)

%o import sympy

%o from sympy import isprime

%o {print(n) for n in range(10**3) if isprime(n**4+n-1)}

%o (PARI)

%o s=[]; for(n=1, 400, if(isprime(n^4+n-1), s=concat(s, n))); s \\ _Colin Barker_, Jan 31 2014

%Y Cf. A049408, A126424.

%K nonn

%O 1,1

%A _Derek Orr_, Jan 30 2014

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 May 20 05:07 EDT 2024. Contains 372703 sequences. (Running on oeis4.)