summaryrefslogtreecommitdiff
path: root/progs/a80.py
blob: 799d51ae959c02f07b2d38e8b1654e0850d31d27 (plain)
1
2
3
4
5
6
7
8
9
def smallest_Divisor(n): 
    if (n % 2 == 0): 
        return 2; 
    i = 3;  
    while (i*i <= n): 
        if (n % i == 0): 
            return i; 
        i += 2; 
    return n;