1;$j--){ if(fmod($i,$j)<>0){ $divisible=false; break; } } } echo $i;