OFFSET
1,1
EXAMPLE
5 is prime and 5^8 - 5^7 - 5^6 - 5^5 - 5^4 - 5^3 - 5^2 - 5 - 1 = 292969 is prime. Thus 5 is a member of this sequence.
PROG
(Python)
import sympy
from sympy import isprime
{print(n, end=', ') for n in range(10**4) if isprime(n**8-n**7-n**6-n**5-n**4-n**3-n**2-n-1) and isprime(n)}
(PARI) for(n=1, 10^4, if(ispseudoprime(n)&&ispseudoprime(n^8-sum(i=0, 7, n^i)), print1(n, ", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Jun 04 2014
STATUS
approved