Java program about prime number

Java program about prime number

Output:

Enter a number to check for prime number: 5
5 is a prime number

Implementation: