Tweaked problem 4 Combination for symmetry.
Solved problem 5 with simple brute force.