SHARE
TWEET

Untitled

a guest Oct 16th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. k = int(input())
  2. a = []
  3. for i in range(1,100001):
  4.     a.append(1)
  5. for i in range(1,100001):
  6.     if(a[i] == 1):
  7.         for j in range(i, 100001, i):
  8.             a[j] = 0
  9. b = []
  10. for i in range(1,100001):
  11.     if a[i] == 1:
  12.         b.append(i)
  13. print(b[k-1])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top