Problem 3, 4, 7, 8, 9, 10 of Project Euler solved