Problem 10. This solution takes 3 minutes. I've tried several techniques to speed it up but can't so far.
Got problem 10 runtime down to 55 seconds using parallelization.