See https://projecteuler.net/. I'm not a mathematician, but still wanted to pick my brain a bit. Rust, without any real reason why. Run with cargo run --release --bin 3_DIGIT_PROBLEM_NO.