solve project euler #1