Refactored gcd and lcm methods into MathUtils.
Added Problem 33.
Removed unnecessary loops and conditions in Problem 33.