## Java Program for prime number checking

Let’s see how to write a Java program to accept a number and check whether the number is a Prime number or not. A prime number is a whole number greater than 1 whose only factors are 1 and itself. The first few prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, […]