OFFSET
1,2
COMMENTS
The record values are in A378945.
Numbers k such that for some m, (m+k)^2 + k^2 is prime while (m'+k)^2 + k^2 is not prime for 0 < m' < m, and for every k' < k there is m' < m such that (m'+k')^2 + k'^2 is prime.
EXAMPLE
MAPLE
f:= proc(k) local m;
for m from 1 by 2 do
if igcd(m, k) = 1 and isprime((k+m)^2 + k^2) then return m fi
od
end proc:
J:= NULL: count:= 0: rec:= 0:
for k from 1 while count < 30 do
v:= f(k);
if v > rec then
count:= count+1;
J:= J, k;
rec:= v;
fi
od:
J;
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Robert Israel, Dec 11 2024
STATUS
approved