OFFSET
1,1
EXAMPLE
Triples begin 3,4,5; 5,12,13; 15,112,113; 21,220,221; 24,143,145; 28,195,197; 36,77,85; 41,840,841; 59,1740,1741; 64,1023,1025; 89,3960,3961; 100,2499,2501; ...
So with sorted hypotenuses:
3 + 4 + 5 = 12, and 11 and 13 are twin primes;
5 + 12 + 13 = 30, and 29 and 31 are twin primes; ...
MATHEMATICA
amax=10^5; lst={}; k=0; q=12!; Do[If[(e=((n+1)^2-n^2))>amax, Break[]]; Do[If[GCD[m, n]==1, a=m^2-n^2; b=2*m*n; If[GCD[a, b]==1, If[a>b, {a, b}={b, a}]; If[a>amax, Break[]]; c=m^2+n^2; x=a+b+c; If[PrimeQ[x-1]&&PrimeQ[x+1], k++; AppendTo[lst, c]]]], {m, n+1, 12!, 2}], {n, 1, q, 1}]; Union@lst
CROSSREFS
KEYWORD
nonn,uned
AUTHOR
Vladimir Joseph Stephan Orlovsky, Sep 11 2009
STATUS
approved