You are here: Home Blog Comments マイナー過ぎるか

Personal tools

マイナー過ぎるか

Posted by Anonymous User at 2006-06-26 18:04

-- Lua
a={}
for i = 2, math.sqrt(100), 1 do
for j = i + i, 99, i do
a[j] = 1
end
end
for i = 2, 99, 1 do
if not a[i] then
print(i)
end
end

Parent entry キミならどう書く 2.0 - ROUND 1 -