project euler 6 and 31