summaryrefslogtreecommitdiff
path: root/progs/a874.py
blob: 82ae5922ee12e7ccb658d6d3aa5978135f4d17fd (plain)
1
2
3
4
5
6
7
8
9
10
def find_Min_Sum(num): 
    sum = 0
    i = 2
    while(i * i <= num): 
        while(num % i == 0): 
            sum += i 
            num /= i 
        i += 1
    sum += num 
    return sum