Changed factors() and proper_divisors() to be instance methods for Integer.