Problem 10 - solved

This one takes about 3 minutes to get the answer with 2.4Ghz i7.