OFFSET
1,1
COMMENTS
Primes in A126424.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
139 is prime and 139^4 - 139 - 1 is prime, so 139 is a member of this sequence.
MATHEMATICA
Select[Prime[Range[400]], PrimeQ[#^4-#-1]&] (* Harvey P. Dale, Jan 20 2019 *)
PROG
(Python)
import sympy
from sympy import isprime
{print(p) for p in range(10**4) if isprime(p**4-p-1) and isprime(p)}
(PARI)
s=[]; forprime(p=2, 3000, if(isprime(p^4-p-1), s=concat(s, p))); s \\ Colin Barker, Jan 19 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Jan 19 2014
STATUS
approved