for i = 1, 120 do
    io.write(i)
    if i == 1 then
        print("->x")
    elseif i % 2 == 0 and i ~= 2 then
        print("->x")
    elseif i % 3 == 0 and i ~= 3 then
        print("->x")
    elseif i % 5 == 0 and i ~= 5 then
        print("->x")
    elseif i % 7 == 0 and i ~= 7 then
        print("->x")
    else
        print("->o")
    end
end

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: