Project Euler Solutions - probably inefficient...