https://wikimass.com/python/perfect-number