The program simply have a function which checks if a number is a perfect number. A perfect is the one for which sum of all its factors(excluding number itself) is equal to n