failed attempts at Problem 81 and 69; 69 needs something like a sieve and 81 needs dynamic programming as UCS is too expensive