For this Question: Given an integer N, your task is to return the sum of all of its divisors.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>SumOfDivisors()</b> that takes the integer N as parameter.

Constraints:-
1<=N<=10^9Return the sum of all of the divisors.Sample Input:-
4

Sample Output:-
7

Sample Input:-
13

Sample Output:-
14, I have written this Solution Code: 
      
 
def SumOfDivisors(num) : 
      
    # Final result of summation of divisors 
    result = 0
      
    # find all divisors which divides 'num' 
    i = 1
    while i<= (math.sqrt(num)) : 
        
        # if 'i' is divisor of 'num' 
        if (num % i == 0) : 
        
            # if both divisors are same then 
            # add it only once else add both 
            if (i == (num / i)) : 
                result = result + i; 
            else : 
                result = result +  (i + num/i); 
        i = i + 1
          
    # Add 1 to the result as 1 is also  
    # a divisor 
    return (result); , In this Programming Language: Python, Now tell me if this Code is compilable or not?