File size: 139 Bytes
6c62356
 
 
 
 
 
 
1
2
3
4
5
6
7

def sum(a,b): 
    sum = 0
    for i in range (1,min(a,b)): 
        if (a % i == 0 and b % i == 0): 
            sum += i 
    return sum