I\'m trying to solve the problem:
What is the value of the first triangle number to have over five hundred divisors?
A trian
You'll have to think more and use less brute force to solve Project Euler questions.
In this case you should investigate which and how many divisors triangle numbers have. Start at the beginning, look for patterns, try to understand the problem.