Create PrimeGen.java

prime number generation