OFFSET
1,1
COMMENTS
5+(7^2-5^2)=5+24=29; 7+(7^2-5^2)=7+24=31,..
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
lst={}; Do[p1=Prime[n]; p2=p1+2; If[PrimeQ[p2]&&PrimeQ[p1+(p2^2-p1^2)]&&PrimeQ[p2+(p2^2-p1^2)], AppendTo[lst, p1]], {n, 8!}]; lst
prQ[{a_, b_}]:=Module[{c=b^2-a^2}, AllTrue[{a+c, b+c}, PrimeQ]]; Transpose[ Select[ Select[ Partition[Prime[Range[5000]], 2, 1], #[[2]]-#[[1]] == 2&], prQ]][[1]] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Aug 12 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 02 2010
STATUS
approved