local x = 100
local g = 0
local prost = 2
local sq_x = math.sqrt(x) + 1
sq_x = math.floor(sq_x)
while (prost < sq_x) do
print("P: "..prost)
for i = prost, sq_x, 1 do
if ( x % i == 0 ) then
g = x / i
sq_x = math.sqrt(g) + 1
sq_x = math.floor(sq_x)
end
end
end
主页
/
user-637738