summaryrefslogtreecommitdiff
path: root/progs/a4.py
blob: 7d5f1e2c064d8c0aa635e4fa11e25dca88796fc5 (plain)
1
2
3
4
5
6
7
8
9
def prime_num(num):
  if num >=1:
   for i in range(2, num//2):
     if (num % i) == 0:
                return False
     else:
                return True
  else:
          return False