| Problem statement | Source code | Tags: Brute force
Not much to say about this. Division rounds down by default in C++.
I bet there's a way to mathematically calculate the limit, but this at most takes iterations per module, so it's efficient enough.