This technically works, since I tried it with the example numbers and had success, but it doesn't work with such large numbers. So technically correct isn't the best correct. Will continue to research and revise when a more correct solution is found.