SHARE
TWEET

Untitled

a guest Nov 15th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def find_prime(n):
  2.  
  3.   count_nth = 0
  4.  
  5.   check = 2
  6.  
  7.   while count_nth < n:
  8.    
  9.     for judge in range(check-1):
  10.      
  11.       if check % judge == 0:
  12.         ok = 1
  13.      
  14.       else:
  15.         ok = 0
  16.    
  17.     if ok == 0:
  18.       count_nth += 1
  19.       check += 1
  20.  
  21.   return check
  22.  
  23. print(find_prime(10))
RAW Paste Data
Top