Start on Euler 443, need something clever, brute force will be too slow
here.