<s>[INST] import random

def is_prime(n):
    if n < 2:
        return False

    for i in range(2, int(n ** 0.5) + 1):
        if n % i == 0:
            return False

    return True

def big_prime():
    primes = []
    for num in range(1000, 10000):
        if is_prime(num):
            primes.append(num)
    prime = random.choice(primes)
    return prime

def main():
    big_prime_num = big_prime()
    print(big_prime_num)

main()

Here is the code. The code is supposed to print a random prime number from a certain range. However, the code does not run as I expect it to. What could be the reason for this?[/INST]