Criticize the code
<?php function isPrime($num) { if ($num < 2) { echo "$num is not prime"; exit(); } for ($i = 2; $i < $num; $i++) { if ($num % $i == 0) { echo "$num is not prime"; exit(); } } echo "$num is prime"; } isPrime(13); ?> Why do you need the square root in the expression for ($i = 2; $i < $num; $i++) if everything works so well ... But how can you convert this code so that you can search for primes in the range from 2 to 13?