solution to PE1
Project Euler 1