<?php
for ($A = 1; $A < 121; $A++) {
echo "{$A}";
if ($A === 1) {
echo":x\n";
} else {
if ($A % 2 === 0 && $A != 2) {
echo":x\n";
} else {
if ($A % 3 === 0 && $A != 3) {
echo":x\n";
} else {
if ($A % 5 === 0 && $A != 5) {
echo":x\n";
} else {
if ($A % 7 === 0 && $A != 7) {
echo":x\n";
} else {
echo":o\n";
}
}
}
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: