def get_prime_at_position(n):
    limit = 125000
    primes = []
    is_prime = [True] * limit
    is_prime[0] = is_prime[1] = False

    for i in range(2, limit):
        if is_prime[i]:
            primes.append(i)
            if len(primes) == n:
                return primes[-1]
            for j in range(i*i, limit, i):
                is_prime[j] = False

print(get_prime_at_position(10000))
 def get_prime_at_position(n): Limit = 125000 primes = [] is_prime = [True] * Limit is_prime[0] = is_prime[1] = False สำหรับฉันในช่วง (2, ขีดจำกัด): if is_prime[i]: primes.append (i) ถ้า len(primes) == n: return primes[-1] สำหรับ j อยู่ในช่วง (i*i, Limit, i): is_prime[j] = False print(get_prime_at_position(10000))
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence