login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A119863 Numbers n such that n^3 + n^2 + 1 is prime. 2
1, 2, 3, 5, 8, 9, 11, 12, 23, 24, 26, 30, 35, 42, 44, 45, 47, 53, 56, 57, 62, 66, 68, 69, 71, 74, 86, 87, 89, 92, 101, 111, 120, 122, 123, 125, 140, 143, 147, 152, 170, 177, 179, 180, 191, 192, 195, 198, 203, 209, 219, 224, 230, 234, 239, 243, 245, 246, 254, 255, 263 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

EXAMPLE

92^3 + 92^2 + 1 = 787153 (prime), so 92 is in the sequence.

MAPLE

a:=proc(n) if isprime(n^3+n^2+1)=true then n else fi end: seq(a(n), n=0..300); # (Deutsch)

MATHEMATICA

f[a_]:=a^0+a^2+a^3; lst={}; Do[If[PrimeQ[f[n]], AppendTo[lst, n]], {n, 6!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jul 14 2009 *)

Select[Range[300], PrimeQ[#^3+#^2+1]&] (* Harvey P. Dale, May 03 2014 *)

PROG

(PARI) is(n)=isprime(n^3+n^2+1) \\ Charles R Greathouse IV, Jan 21 2015

CROSSREFS

Sequence in context: A286486 A285092 A027756 * A285253 A047254 A226815

Adjacent sequences:  A119860 A119861 A119862 * A119864 A119865 A119866

KEYWORD

nonn

AUTHOR

Parthasarathy Nambi, Jul 31 2006

EXTENSIONS

More terms from Emeric Deutsch and R. J. Mathar, Aug 04 2006

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified February 20 16:25 EST 2018. Contains 299380 sequences. (Running on oeis4.)