Buggy python submission (verdict: Runtime Error):
a=map(int,raw_input().split())
a.sort()
b=0
while a!=[]:
 b+=1
 a=[i for i in a if a[i]%a[0]==0]
print(b)

Fixed submission:
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
        i+=1
    return True
b=0
for i in range(int(a)):
    c=input()
    if ip(int(c)):b+=1
print(str(b))

Buggy python submission (verdict: Runtime Error):
a=map(int,raw_input().split())
a.sort()
b=0
while a!=[]:
 b+=1
 a=[i for i in a if a[i]%a[0]!=0]
print(b)

Fixed submission:
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
        i+=1
    return True
b=0
for i in range(int(a)):
    c=input()
    if ip(int(c)):b+=1
print(str(b))

Buggy python submission (verdict: Runtime Error):
a=map(int,raw_input().split())
a.sort()
b=0
for i in a:
 t=True
 for I in range(2,int(a**0.5)+1):
  if i%I==0: 
   t=False
   break
 if t:
  b+=1
print(b)

Fixed submission:
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
        i+=1
    return True
b=0
for i in range(int(a)):
    c=input()
    if ip(int(c)):b+=1
print(str(b))

Buggy python submission (verdict: Runtime Error):
a=map(int,raw_input().split())
a.sort()
b=0
for i in a:
 t=True
 for I in range(2,int(a**0.5)+1):
  if i%I==0: 
   t=False
 if t:
  b+=1
print(b)

Fixed submission:
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
        i+=1
    return True
b=0
for i in range(int(a)):
    c=input()
    if ip(int(c)):b+=1
print(str(b))

Buggy python submission (verdict: Runtime Error):
a=list(set(a))
b=0
for i in a:
    t=True
    for I in range(2,int(i**0.5)+1):
        if i%I==0: t=False
    if t: 
        b+=1
print(b)

Fixed submission:
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
        i+=1
    return True
b=0
for i in range(int(a)):
    c=input()
    if ip(int(c)):b+=1
print(str(b))

Buggy python submission (verdict: Runtime Error):
a=map(int,raw_input().split())
a=list(set(a))
b=0
for i in a:
    t=True
    for I in range(2,int(i**0.5)+1):
        if i%I==0:
            t=False
    if t: 
        b+=1
print(b)

Fixed submission:
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
        i+=1
    return True
b=0
for i in range(int(a)):
    c=input()
    if ip(int(c)):b+=1
print(str(b))

Buggy python submission (verdict: Runtime Error):
a=map(int,raw_input().split())
a=list(set(a))
b=0
for i in a:
    t=True
    for I in range(2,int(i**0.5)+1):
        if i%I==0:
            t=False
    if t: 
        b+=1
print b

Fixed submission:
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
        i+=1
    return True
b=0
for i in range(int(a)):
    c=input()
    if ip(int(c)):b+=1
print(str(b))

Buggy python submission (verdict: Time Limit Exceeded):
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
    return True
b=0
for i in range(a):
    a=input()
    if ip(a):b+=1
print(str(b))

Fixed submission:
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
        i+=1
    return True
b=0
for i in range(int(a)):
    c=input()
    if ip(int(c)):b+=1
print(str(b))

Buggy python submission (verdict: Time Limit Exceeded):
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
    return True
b=0
for i in range(a):
    c=input()
    if ip(c):b+=1
print(str(b))

Fixed submission:
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
        i+=1
    return True
b=0
for i in range(int(a)):
    c=input()
    if ip(int(c)):b+=1
print(str(b))

Buggy python submission (verdict: Time Limit Exceeded):
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
    return True
b=0
for i in range(int(a)):
    c=input()
    if ip(int(c)):b+=1
print(str(b))

Fixed submission:
a=input()
def ip(a):
    i=2
    while i**2<=a:
        if a%i==0:return False
        i+=1
    return True
b=0
for i in range(int(a)):
    c=input()
    if ip(int(c)):b+=1
print(str(b))