summaryrefslogtreecommitdiff
path: root/progs/a966.py
blob: 2e036eea07ddbb63d1b54af11f3da860e41ddaf2 (plain)
1
2
3
4
5
6
7
import math
def is_not_prime(n):
    result = False
    for i in range(2,int(math.sqrt(n)) + 1):
        if n % i == 0:
            result = True
    return result