FOR JAVA
Write a method called isPrime that takes a number and returns true if the input number is prime, and false otherwise. Then in the main method, take two numbers from user, and print the prime numbers between these two numbers.
Output:
Enter two numbers
4
20
5
7
11
13
17
19
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here