I think you are overthinking it. Or maybe this is just not the right problem for TDD? This seems to be a typical interview / Project Euler (kind of) question. Something that doesn't require more testing than running it several times in console. Why do I say this?--Tests are typically needed whe...