Project Euler problem #1