project euler problem 9 in various languages