The problem here is that you're trying to brute-force the solution by testing every number.
Since the solution is quite large, this will take some time.
Project Euler problems (which this is, even if you found it elsewhere) often require some clever optimization or specific mathematical knowledge.
In this case, you need to know how divisibility works, https://en.wikipedia.org/wiki/Divisibili...e_divisors should be of help.
Once you do, you just need a single calculation to get a solution.
Since the solution is quite large, this will take some time.
Project Euler problems (which this is, even if you found it elsewhere) often require some clever optimization or specific mathematical knowledge.
In this case, you need to know how divisibility works, https://en.wikipedia.org/wiki/Divisibili...e_divisors should be of help.
Once you do, you just need a single calculation to get a solution.