Ad
Code
Diff
  • public class Primes {
      public static boolean isAPrime(int number) {
        return number == 2 || number % 2 != 0;
      }
    }
    • public class Primes {
    • public static boolean isAPrime(int number) {
    • return true;
    • return number == 2 || number % 2 != 0;
    • }
    • }