for i in 1..120 do
puts i
if i == 1
puts"→x"
elsif i % 2 == 0 && i != 2
puts"→x"
elsif i % 3 == 0 && i != 3
puts"→x"
elsif i % 5 == 0 && i != 5
puts"→x"
elsif i % 7 == 0 && i != 7
puts"→x"
else
puts"→o"
end
end
To embed this project on your website, copy the following code and paste it into your website's HTML: