//PascalABC.NET 3.1 сборка 1219 (от самих создателей) function IsPrime(x: integer): boolean; begin var sqx := Round(Sqrt(x)); var i := 2; while (i <= sqx) and (x mod i <> 0) do i += 1; Result := i > sqx; end;
begin Range(ReadInteger('a ='), ReadInteger('b =')).Where(IsPrime).Print; end.
function IsPrime(x: integer): boolean;
begin
var sqx := Round(Sqrt(x));
var i := 2;
while (i <= sqx) and (x mod i <> 0) do
i += 1;
Result := i > sqx;
end;
begin
Range(ReadInteger('a ='), ReadInteger('b =')).Where(IsPrime).Print;
end.