OFFSET
1,1
LINKS
Abhiram R Devesh, Table of n, a(n) for n = 1..10000
EXAMPLE
p = 5 is in this sequence because p^5 + p^3 + p + 2 = 3257 (prime).
p = 7 is in this sequence because p^5 + p^3 + p + 2 = 17159 (prime).
PROG
(Python)
import sympy.ntheory as snt
p=1
while p>0:
....p=snt.nextprime(p)
....pp=p+(p**3)+(p**5)+2
....if snt.isprime(pp) == True:
........print(p, pp)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Abhiram R Devesh, Jun 14 2014
STATUS
approved