OFFSET
1,1
EXAMPLE
380529^4+380529+1 (20967711831335262645811), 380529^4+380529-1 (20967711831335262645809), 380529^4-380529+1 (20967711831335261884753), and 380529^4-380529-1 (20967711831335261884751) are all prime. Thus, 380529 is a member of this sequence.
MATHEMATICA
Select[Range[55*10^5], AllTrue[#^4+{(#-1), (#+1), (-#-1), (-#+1)}, PrimeQ]&] (* Harvey P. Dale, Nov 02 2024 *)
PROG
(Python)
import sympy
from sympy import isprime
{print(n) for n in range(10**7) if isprime(n**4+n+1) and isprime(n**4-n+1) and isprime(n**4+n-1) and isprime(n**4-n-1)}
(PARI)
for(n=1, 5000000, if(isprime(n^4+n+1)&&isprime(n^4-n+1)&&isprime(n^4+n-1)&&isprime(n^4-n-1), print1(n, ", "))) \\ Colin Barker, Jan 31 2014
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Derek Orr, Jan 30 2014
STATUS
approved