public static boolean isPrime(long number) {
        return !LongStream.rangeClosed(2, Math.round(Math.sqrt(number))).anyMatch(n -> number % n == 0);
    }
(**) Determine whether a given integer number is prime.
java8/src/main/java/com/shekhargulati/ninetynine_problems/_02_arithmetic/P31.java