Return true when the number is prime: greater than 1, and divisible only by 1 and itself.
boolean isPrime(int n)
Examples
There are also 5 hidden tests you can't see. Solve the problem, not the examples.