def main2():
    n = 6
    alist = [2, 3, 4, 5, 6, 7]
    print(alist)

    def is_prime(n):
        if n == 2:
            return True

        if n <= 1 or n % 2 == 0:
            return False

        n = ceil(sqrt(n))
        for i in range(2, n):
            if n % i == 0:
                return False
        return True

    print(sum([is_prime(n) for n in alist]))

main2()
