project Euler 39