ПЕРЕВЕСТИ КОД ИЗ ПАСКАЛЯ В ПИТОН var
numDel, i, j: longint;
maxDel: longint;
sqrtI: real;
begin
for i := 123456789 to 223456789 do begin
sqrtI := sqrt(i);
numDel := 0;
if (round(sqrtI) = sqrtI) then begin
maxDel := 1;
for j := 2 to round(sqrtI) - 1 do begin
if (i mod j = 0) then begin
if (maxDel = 1) then maxDel := i div j;
numDel := numDel + 2;
end;
end;
if numDel = 2 then writeln(i, ' ', maxDel);
end;
end;
end.