var N,i:integer;
k:boolean;
BEGIN
readln(N);
i:=2;
while (k=False) do begin
if (N mod i=0) then k:=True;
i:=i+1;
end;
writeln(i-1);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var N,i:integer;
k:boolean;
BEGIN
readln(N);
i:=2;
while (k=False) do begin
if (N mod i=0) then k:=True;
i:=i+1;
end;
writeln(i-1);
end.