This site is supported by donations to The OEIS Foundation.



Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A236475 Numbers n such that n^3 + n - 1 is prime. 4


%S 3,4,7,10,15,16,18,21,25,27,33,36,39,43,46,51,52,55,63,73,78,81,87,93,

%T 94,96,100,103,105,109,112,115,117,120,124,127,129,135,139,145,150,

%U 151,165,166,171,178,189,192,198,199

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

%e 46^3 + 46 - 1 = 97381 is prime. So 46 is a member of this sequence.

%o (Python)

%o import sympy

%o from sympy import isprime

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

%o (PARI)

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

%Y Cf. A049407, A126421.

%K nonn

%O 1,1

%A _Derek Orr_, Jan 26 2014

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 5 13:26 EST 2019. Contains 329751 sequences. (Running on oeis4.)