OFFSET
1,1
COMMENTS
Primes in the sequence A236475.
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 1..10000
EXAMPLE
241 is prime and 241^3 + 241 - 1 = 13997761 is prime.
PROG
(Python)
import sympy
from sympy import isprime
{print(n) for n in range(10**4) if isprime(n) and isprime(n**3+n-1)}
(PARI)
s=[]; forprime(p=2, 2000, if(isprime(p^3+p-1), s=concat(s, p))); s \\ Colin Barker, Jan 27 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Jan 26 2014
STATUS
approved