Create CheckPrimeNumber.java

check if a given number is a prime number