finished euler 47