than the divisable, if not simply skip which will end the script while($numbercheck >= $checking) { // Divide the number being checked by the divisable $result = $numbercheck / $checking; // If it's an integer if(is_int($result)) { // If it is NOT 1 if ($numbercheck !== 1) { // If it is NOT the same number as the divisable number if ($numbercheck !== $checking) { // Then lets display the number on our screen echo("{$numbercheck}
"); // Set the divisable number back to 1 $checking = 1; } } } else { // If it's not an integer then lets add one to the divisable number $checking =+ 1; } } // Move onto the next number in the array } ?>