OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..2000
EXAMPLE
13008 = 23^3 + 29^2 is a term since 23 and 29 are consecutive primes, (13007, 13009) are twin primes, 23^2 + 29^3 = 24918, and (24917, 24919) are also twin primes.
MATHEMATICA
a={}; Do[p1=Prime[n]; p2=Prime[n+1]; p3=p1^2+p2^3; p4=p1^3+p2^2; If[PrimeQ[p3-1]&&PrimeQ[p3+1]&&PrimeQ[p4-1]&&PrimeQ[p4+1], AppendTo[a, p4]], {n, 13^5}]; Print[a];
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 16 2008
EXTENSIONS
More terms from Amiram Eldar, Dec 22 2019
STATUS
approved