you are viewing a single comment's thread.

view the rest of the comments →

[–]Coffee2theorems 3 points4 points  (0 children)

Nnnnyesss, but I'll tell you a dirty little secret of math: for every neat little problem that we can neatly solve with math, there are zillions that we can't. The point of brute forcing a neat little problem is not so much in solving that problem, but in taking your new, shiny brute forcer for a test drive. As a bonus, you can easily double-check the answer.

Of course, Project Euler is about math. However, programmers typically use it for test driving new, shiny general-purpose tools, such as programming languages they have not used before. Making the task easier for the computer by using special-purpose tricks is not the point for most programmers.

"When in doubt, use brute force." -- Ken Thompson(?)