public static boolean isPrime(int num) { for (int x =2; x