Partial solution for problem 70 (can be brute forced though).