Fix problem 4 tests, remove unused variable.
Solution for problem 5. Add lcm & gcd functions to common.