public static boolean isPrime(int num){
if( num < 2){
return false;
}
for(int i = 2;i <= Math.sqrt(num);i++){
if(num % i == 0){
return false;
}
}
return true;
}
08-21
08-21
08-21
08-21