for (i in 1:120) {
if (i == 1) {
next
} else if (i %% 2 == 0 && i != 2) {
next
} else if (i %% 3 == 0 && i != 3) {
next
} else if (i %% 5 == 0 && i != 5) {
next
} else if (i %% 7 == 0 && i != 7) {
next
} else {
cat("", i, "")
cat(" is o","\n")
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: