Added the solution to number 10 with the new prime library.