let P = 1;
let p=1;
while (p < 28) {
if (P == 1) {
console.log(P+"->x");
} else if (P % 2 == 0 && P != 2) {
p=p;
} else if (P % 3 == 0 && P != 3) {
p=p;
} else if (P % 5 == 0 && P != 5) {
p=p;
} else if (P % 7 == 0 && P != 7) {
p=p;
} else if (P % 11 == 0 && P != 11) {
p=p;
} else {
p+=1;
console.log(P+"->o");
}
P+=1;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: