import std.stdio;
void main()
{
for (auto i = 1; i < 121; i++) {
write(i);
if (i == 1) {
writeln("→x");
} else if (i % 2 == 0 && i != 2) {
writeln("→x");
} else if (i % 3 == 0 && i != 3) {
writeln("→x");
} else if (i % 5 == 0 && i != 5) {
writeln("→x");
} else if (i % 7 == 0 && i != 7) {
writeln("→x");
} else {
writeln("→o");
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: