Split prime test out to utility class. Added solution for problem 10.