Python Hands-on 2

def countPrimeNumbers(numbers):
    c=0
    for i in numbers:
        f=0
        if(i==0 or i==1):
            f=1
        for ii in range(2,i):
            if(i%ii==0):
                f=1
                break
        if(f!=1):
            c+=1
    return c

 

©2018 by The real one. Proudly created with Wix.com