You need to implement the isPrime method to check whether the input number is prime or not.
It's guaranteed that input value is always greater than 1 (i.e. 2, 3, 4, 5, ....). Use the provided template for your method.
A prime number is a value greater than 1 that has no positive divisors other than 1 and itself. More details are here.
This problem has a simple and clear solution with streams. Please, do not use loops. In order to create a stream of numbers you can look into Stream.iterate() or IntStream.range().