OFFSET
1,1
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 1..10000
EXAMPLE
26^3 - 26 + 1 = 17551 is prime. So 26 is a member of this sequence.
MATHEMATICA
Select[Range[250], PrimeQ[#^3-#+1]&] (* Harvey P. Dale, Dec 06 2017 *)
PROG
(Python)
import sympy
from sympy import isprime
{print(n) for n in range(10**3) if isprime(n**3-n+1)}
(PARI)
s=[]; for(n=1, 500, if(isprime(n^3-n+1), s=concat(s, n))); s \\ Colin Barker, Jan 27 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Jan 26 2014
EXTENSIONS
More terms from Colin Barker, Jan 27 2014
STATUS
approved