You are viewing a single comment's thread. Return to all comments →
#python result = [2] for x in range(3, 110000, 2): m=True for i in range(3, int(x**0.5)+1, 2): if x %i==0: m=False break if m: result.append(x) t = int(input().strip()) for a0 in range(t): n = int(input().strip()) print(result[n-1])
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #7: 10001st prime
You are viewing a single comment's thread. Return to all comments →