thinking about project euler problem