Tag: write a program to check if a given number is prime or not in java