OFFSET
1,1
EXAMPLE
115^4 - 115 + 1 = 174900511 is prime. Thus, 115 is a member of this sequence.
MATHEMATICA
Select[Range[400], PrimeQ[#^4-#+1]&] (* Harvey P. Dale, Jun 03 2015 *)
PROG
(Python)
import sympy
from sympy import isprime
{print(n) for n in range(10**3) if isprime(n**4-n+1)}
(PARI)
s=[]; for(n=1, 400, if(isprime(n^4-n+1), s=concat(s, n))); s \\ Colin Barker, Jan 31 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Jan 30 2014
STATUS
approved