Buggy python submission (verdict: Runtime Error):
N=int(input())
list=[str(i) for i in [11, 31, 41, 61, 71, 101, 131, 151, 181, 191, 211, 241, 251, 271, 281, 311, 331, 401, 421, 431, 461, 491, 521, 541, 571, 601, 631, 641, 661, 691, 701, 751, 761, 811, 821, 881, 911, 941, 971, 991, 1021, 1031, 1051, 1061, 1091, 1151, 1171, 1181, 1201, 1231, 1291, 1301, 1321, 1361, 1381]]
print(" ".join(list[:N]))

Fixed submission:
a,b = map (int , input().split())

if a <= b:
    print(a)
else:
    print(a-1)

Buggy python submission (verdict: Runtime Error):
h,w = map(int, input().split())
# print(h,w)
row = []
for x in range(h):
    col = list(input())
    row.append(col)

out = "YES"

for x in range(h):
    for y in range (w):
        if row[x][y] == "#":
           #print(x,y)
            if  x > 0 and row[x-1][y] == "#":
                pass
            elif x < h-1 and row[x+1][y] == "#":
                pass
            elif y > 0 and row[x][y-1] == "#" :
                pass
            elif y < w-1  and row [x][y+1] == "#" :
                pass
            else:
                out = "NO"
                break
        pass

print(out)

Fixed submission:
a,b = map (int , input().split())

if a <= b:
    print(a)
else:
    print(a-1)

Buggy python submission (verdict: Runtime Error):
list = raw_input().split()
if list[0] <= list[1]:
  print list[0]
else:
  print list[0] - 1


Fixed submission:
list = raw_input().split()
if list[0] <= list[1]:
  print list[0]
else:
  print int(list[0]) - 1

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


def is_prime(n):
    for i in range(1, n):
        if i != 1 and n % i == 0:
            return False
    return True


def prime_numbers():
    num = 5
    while True:
        is_num_prime = is_prime(num)
        if is_num_prime and num % 5 == 1:
            yield num
        num += 1


prime_gene = prime_numbers()
ans = [next(prime_gene) for _ in range(N)]
print(*ans)


Fixed submission:
a, b = map(int, input().split())
if a <= b:
    nums = a
else:
    nums = a - 1
print(nums)

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


def is_prime(n):
    for i in range(1, n):
        if i != 1 and n % i == 0:
            return False
    return True


def prime_numbers():
    num = 5
    while True:
        is_num_prime = is_prime(num)
        if is_num_prime:
            yield num
        num += 1


prime_gene = prime_numbers()
ans = []

while len(ans) < N:
    prime = next(prime_gene)
    if prime % 5 == 1:
        ans.append(prime)
print(ans)

Fixed submission:
a, b = map(int, input().split())
if a <= b:
    nums = a
else:
    nums = a - 1
print(nums)

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


def is_prime(n):
    for i in range(1, n):
        if i != 1 and n % i == 0:
            return False
    return True


def prime_numbers():
    num = 2
    while True:
        is_num_prime = is_prime(num)
        if is_num_prime:
            yield num
        num += 1


prime_gene = prime_numbers()
ans = []

while len(ans) < 5:
    prime = next(prime_gene)
    if prime % 5 == 1:
        ans.append(prime)
print(ans)


Fixed submission:
a, b = map(int, input().split())
if a <= b:
    nums = a
else:
    nums = a - 1
print(nums)