Solved the tenth problem and added a PrimeUtil class for common
calculations with prime numbers.