OFFSET
1,1
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
EXAMPLE
2^3 - 2^2 + 1 = 8 - 4 + 1 = 5, which is prime.
MATHEMATICA
Select[Range[210], PrimeQ[#^3-#^2+1]&] (* Harvey P. Dale, Mar 04 2012 *)
PROG
(PARI) isok(n) = isprime(n^3 - n^2 + 1); \\ Michel Marcus, Aug 24 2016
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Pierre CAMI, Nov 16 2005
EXTENSIONS
More terms from Vladimir Joseph Stephan Orlovsky, Jun 30 2009
STATUS
approved