OFFSET
1,1
COMMENTS
Numbers s such that there exist numbers a,b,c,r > 0 with s = (a+b+c)/2, r^2 = (s-a)*(s-b)*(s-c)/s, and 2*s + r and 2*s - r are prime.
All terms are even.
LINKS
Robert Israel, Table of n, a(n) for n = 1..1000
EXAMPLE
a(3) = 22 is a term because a triangle with sides 11, 13 and 20 has semiperimeter (11 + 13 + 20)/2 = 22 and inradius sqrt((22-11)*(22-13)*(22-20)/22) = 3, and 2*22 + 3 = 47 and 2*22 - 3 = 41 are both prime.
MAPLE
Res:= NULL: count:= 0:
for s from 2 to 1000 by 2 do
found:= false;
for a from 1 to 2*s/3 while not found do
for b from a to s - a/2 while not found do
c:= 2*s-a-b;
q:= (s-a)*(s-b)*(s-c)/s;
if q::integer and issqr(q) then
r:= sqrt(q);
if isprime(2*s+r) and isprime(2*s-r) then
found:= true; Res:= Res, s; count:= count+1;
fi fi
od od od:
R;
CROSSREFS
KEYWORD
nonn
AUTHOR
Will Gosnell and Robert Israel, Nov 22 2025
STATUS
approved
