OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = (A235053(n)-1)^(1/2).
EXAMPLE
47 is prime and (47^2+1)^2+1 is also prime. So, 47 is a member of this sequence.
MATHEMATICA
Select[Prime[Range[500]], PrimeQ[(#^2+1)^2+1]&] (* Harvey P. Dale, Dec 20 2021 *)
PROG
(Python)
import sympy
from sympy import isprime
{print(p) for p in range(10**4) if isprime(p) and isprime((p**2+1)**2+1)}
(PARI) isok(p) = isprime(p) && (q = p^2+1) && isprime(q^2+1); \\ Michel Marcus, Jan 19 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus and Derek Orr, Jan 19 2014
STATUS
approved