OFFSET
1,1
COMMENTS
[p(i)+p(i+1)]^2+1 is a prime.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5)=59 since (59+61)^2+1 = 120^2+1 = 14400+1 = 14401 is a prime.
PROG
(PARI) isok(n) = (isprime(n) && isprime(1+(n + nextprime(n+1))^2)) \\ Michel Marcus, Jul 18 2013
(PARI) p=2; forprime(q=3, 1e4, if(isprime((p+q)^2+1), print1(p", ")); p=q) \\ Charles R Greathouse IV, Aug 26 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Carmine Suriano, Oct 18 2010
EXTENSIONS
569 inserted by R. J. Mathar, Oct 18 2010
STATUS
approved