Added projecteuler answer #40