Added problem 9 and 10 - Finished problem 8

(STILL NEED TO IMPROVE PRIME VERIFICATION FOR PROBLEM 10)