Initial try at problem #1 of Project Euler