Exercise 1 A positive integer is perfect if it equals the sum of all of its factors, excluding the number itself. Using a list comprehension, define a function perfects :: Int -> [Int] that returns the list of all perfect numbers up to a given limit. For example: Ghci>perfects 500 [6,28,4
Exercise 1 A positive integer is perfect if it equals the sum of all of its factors, excluding the number itself. Using a list…