1,1

Ivan Neretin, Table of n, a(n) for n = 1..10000

2^3 - 2^2 + 1 = 8 - 4 + 1 = 5, which is prime.

Select[Range[210], PrimeQ[#^3-#^2+1]&] (* Harvey P. Dale, Mar 04 2012 *)

(PARI) isok(n) = isprime(n^3 - n^2 + 1); \\ Michel Marcus, Aug 24 2016

Cf. A162292 (corresponding primes).

Sequence in context: A125559 A331865 A087360 * A094565 A034722 A144712

Adjacent sequences: A111498 A111499 A111500 * A111502 A111503 A111504

easy,nonn

Pierre CAMI, Nov 16 2005

More terms from Vladimir Joseph Stephan Orlovsky, Jun 30 2009

approved