update euler 12 problem