15 lines
338 B
Python
15 lines
338 B
Python
|
|
import math
|
|
from tools import number_theory
|
|
|
|
def mkp(count):
|
|
limit = int(count / math.log(count))
|
|
limit = count * count // limit * 11 // 10
|
|
while True:
|
|
prime = list(number_theory.make_prime(limit))
|
|
if count < len(prime):
|
|
return prime[count - 1]
|
|
limit = limit * 11 // 10
|
|
|
|
print(mkp(10001))
|