OFFSET
1,1
EXAMPLE
3 is prime and (3^4-3^3-3^2-3-1)^4 - (3^4-3^3-3^2-3-1)^3 - (3^4-3^3-3^2-3-1)^2 - (3^4-3^3-3^2-3-1) - 1 = 2755117 is prime. Thus, 3 is a member of this sequence.
PROG
(Python)
import sympy
from sympy import isprime
def f(x):
..return x**4-x**3-x**2-x-1
{print(p) for p in range(10**5) if isprime(p) and isprime(f(f(p)))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Feb 23 2014
STATUS
approved