Buggy python submission (verdict: Time Limit Exceeded):
x = int(input())

count = 0
for i in range(0, x):
    a =  int(input())
    if a % 2 == 0 and a != 2:
        count += 1
    else:
        c =int((a + 1) / 2)
        for j in range ( 2,  c-1 ):
            if a % j == 0:
                count += 1
                break;
        
print(x-count)
        



Fixed submission:
x = int(input())

count = 0
for i in range(0, x):
    a =  int(input())
    for j in range ( 2,  a ):
        c = int(a)
        if a % j == 0:
            count += 1
            break;
        if j * j  > c:
            break;
        
print(x-count)

Buggy python submission (verdict: Time Limit Exceeded):
x = int(input())

count = 0
for i in range(0, x):
    a =  int(input())
    if a % 2 == 0 and a != 2:
        count += 1
    elif a % 3 == 0 and a != 3:
        count += 1
    else:
        c =int((a + 1) / 2)
        for j in range ( 3,  c-1 ):
            if a % j == 0:
                count += 1
                break;
        
print(x-count)
        



Fixed submission:
x = int(input())

count = 0
for i in range(0, x):
    a =  int(input())
    for j in range ( 2,  a ):
        c = int(a)
        if a % j == 0:
            count += 1
            break;
        if j * j  > c:
            break;
        
print(x-count)

Buggy python submission (verdict: Time Limit Exceeded):
x = int(input())

count = 0
for i in range(0, x):
    a =  int(input())
    if a == 2 or a == 3:
        count += 0
    elif a == 4:
        count += 1
    c =int(a / 2)
    for j in range ( 2,  c ):
        if a % j == 0:
             count += 1
             break;
        
print(x-count)
        



Fixed submission:
x = int(input())

count = 0
for i in range(0, x):
    a =  int(input())
    for j in range ( 2,  a ):
        c = int(a)
        if a % j == 0:
            count += 1
            break;
        if j * j  > c:
            break;
        
print(x-count)

Buggy python submission (verdict: Runtime Error):
x = int(input())

count = 0
for i in range(0, x):
    a =  int(input())
    for j in range ( 2,  a ):
        if a % j == 0:
             count += 1
	if j * j > a
             break;
        
print(x-count)
        



Fixed submission:
x = int(input())

count = 0
for i in range(0, x):
    a =  int(input())
    for j in range ( 2,  a ):
        c = int(a)
        if a % j == 0:
            count += 1
            break;
        if j * j  > c:
            break;
        
print(x-count)

Buggy python submission (verdict: Runtime Error):
x = int(input())

count = 0
for i in range(0, x):
    a =  int(input())
    for j in range ( 2,  a ):
        if a % j == 0:
             count += 1
	if j * j > a:
             break;
        
print(x-count)
        



Fixed submission:
x = int(input())

count = 0
for i in range(0, x):
    a =  int(input())
    for j in range ( 2,  a ):
        c = int(a)
        if a % j == 0:
            count += 1
            break;
        if j * j  > c:
            break;
        
print(x-count)

Buggy python submission (verdict: Runtime Error):
x = int(input())

count = 0
for i in range(0, x):
    a =  int(input())
    for j in range ( 2,  a ):
        c = int(a)
        if a % j == 0:
             count += 1
             break;
	if j * j > c:
             break;
        
print(x-count)
        



Fixed submission:
x = int(input())

count = 0
for i in range(0, x):
    a =  int(input())
    for j in range ( 2,  a ):
        c = int(a)
        if a % j == 0:
            count += 1
            break;
        if j * j  > c:
            break;
        
print(x-count)