public static void isPrimeCheck(final int a, final boolean odd) {
        if ((odd) && (a == 2))
            throw new IllegalArgumentException(a + " is not an odd prime.");
        if (!isPrime(a))
            throw new IllegalArgumentException(a + " is not a prime.");
    }