OFFSET
1,1
LINKS
Zak Seidov, Table of n, a(n) for n = 1..2568 All terms up to 10^10.
EXAMPLE
p=5087, f(p)= 25877573, f(f(p))= 669648784370333 and f(f(f(p)))= 448429494408664742387290530893 are all primes.
MATHEMATICA
Select[Prime[Range[8! ]], PrimeQ[ #^2+4]&&PrimeQ[(#^2+4)^2+4]&&PrimeQ[ ((#^2+4)^2+4)^2+4]&] [Vladimir Joseph Stephan Orlovsky, Feb 26 2010]
CROSSREFS
KEYWORD
nonn
AUTHOR
Giovanni Resta, Feb 27 2006
STATUS
approved