I have written this code in Python to print Nth prime number. Python Code: from math import sqrt num=1 count=0 N=0 def prime(n): sqroot=int(sqrt(n)) j=2 while j<=sqroot: if n%j==0: return False j=j+1 return True...
I have written this code in Python to print Nth prime number. Python Code: from math import sqrt num=1 count=0 N=0 def prime(n): sqroot=int(sqrt(n)) j=2 while j<=sqroot: if n%j==0: return False j=j+1 return True...