let P = 1;
while (P < 121) {
    if (P == 1) {
        console.log(P+"->x");
    } else if (P % 2 == 0 && P != 2) {
        console.log(P+"->x");
    } else if (P % 3 == 0 && P != 3) {
        console.log(P+"->x");
    } else if (P % 5 == 0 && P != 5) {
        console.log(P+"->x");
    } else if (P % 7 == 0 && P != 7) {
        console.log(P+"->x");
    } else {
        console.log(P+"->o");
    }
    
    P+=1;
}

Embed on website

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