first attempt at Project Euler Q4