Problem 47...needs a lot of optimization (5.5 min runtime?)