fixes and project euler solution for 2