class check_prime {
public static void main(String[] args) {
int number = 5;
System.out.println("A prime number is only divisible by 1 and itself (except 1 and 2).");
System.out.print("Is " + number + " a prime number? ");
boolean isPrimeNumber = (number%2==0) ? false : (number%3==0) ? false : (number%4==0) ? false : true;
if (isPrimeNumber)
System.out.println("Yes");
else
System.out.println("No");
}
}