first attempt at Project Euler Q1