summaryrefslogtreecommitdiff
path: root/progs/a619.py
blob: f756769d5f13a3a6f72a40cbcdbd30789d7b42e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
def count_Primes_nums(n):
    ctr = 0
    for num in range(n):
        if num <= 1:
            continue
        for i in range(2,num):
            if (num % i) == 0:
                break
        else:
            ctr += 1
    return ctr