finished project euler problem