问题描述:
Write a python function to check whether the sum of divisors are same or not.

测试用例:
['assert areEquivalent(36,57) == False', 'assert areEquivalent(2,4) == False', 'assert areEquivalent(23,47) == True']

生成的代码:
def areEquivalent(num1, num2):
    def sum_of_divisors(n):
        total = 0
        for i in range(1, n + 1):
            if n % i == 0:
                total += i
        return total

    return sum_of_divisors(num1) == sum_of_divisors(num2)