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

Embed on website

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