procedure TForm1.SpeedButton1Click(Sender: TObject);
var a,b,c,d ,s1,s2:integer;
begin
for a := 1 to 100 do
for b := 1 to 100 do
for c := 1 to 100 do
for d := 1 to 100 do
begin
s1 := a*a*a + b*b*b;
s2 := c*c*c + d*d*d;
if s1 =s2 then
if (a<>b) and (a<>d) and (a<>c) then
begin
showmessage( 'a:'+inttostr(a)+' b:'+inttostr(b)+#13
+'c:'+inttostr(c)+' d:'+inttostr(d)+#13
+'s:'+inttostr(s1));
application.Terminate
end;
end;
end;