var λ = 1

while λ < 121 {
    print(λ)
    if λ == 1 {
        print("→x")
    } else if λ % 2 == 0 && λ != 2{
        print("→x")
    } else if λ % 3 == 0 && λ != 3{
        print("→x")
    } else if λ % 5 == 0 && λ != 5{
        print("→x")
    } else if λ % 7 == 0 && λ != 7{
        print("→x")
    } else {
        print("→o")
    }
    λ += 1
}

Embed on website

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