OFFSET

1,1

EXAMPLE

Numbers 24917 and 24919 are primes, making 24918 the average of twin primes. Also, 24918 = 23^2 + 29^3. Thus, 24918 is in this sequence. - Tanya Khovanova, Aug 14 2021

MATHEMATICA

a={}; Do[p1=Prime[n]; p2=Prime[n+1]; pp=p1^2+p2^3; If[PrimeQ[pp-1]&&PrimeQ[pp+1], AppendTo[a, pp]], {n, 16^3}]; Print[a];

CROSSREFS

KEYWORD

nonn,more

AUTHOR

Vladimir Joseph Stephan Orlovsky, May 15 2008

STATUS

approved