sandbox-php/PE5.php
2023-01-22 14:32:04 -05:00

26 lines
217 B
PHP

<?php
$c = 0;
$n = 1;
while ($c < 20) {
for ($i = 1; $i <= 20; $i++) {
if ($n % $i == 0) {
$c++;
} else {
$c = 0;
break;
}
}
if ($c == 20) {
echo $n . "\n";
break;
} else {
$n++;
}
}
?>