Perfect numbers solution and list comprehension
perfect numbers