for ($i=3, $max=99; $i <= $max; $i++){ if (($i % 3) == 0) { echo "Yes I am divisible by 3 - ".$i; } }