Added programs for factors and check if number is prime or not.
Added comments with examples and explanation and exception cases.
Added program for calculating sum of digits.
Added program to express integer as sum of power of 2s.