Applying computational brute force to this kind of contest problem is missing the point, too. Project Euler problems are specifically designed for a code-driven approach anyway. Writing code like this for the problem shown doesn't really teach anything interesting about math, while the programming exercise it motivates is a fairly dull one.
Finally: the JEE is specific to India and you shouldn't expect an international audience to have heard of it - especially since it's a college entrance assessment, not a contest.
All that said, the code is well presented and laid out in a logical order (as far as it goes), and I appreciate the commitment to LaTeX (I use NoScript and only allow scripts when a clear need presents itself; I don't mind reading LaTeX syntax).