Computer Science, asked by kkaumudi, 4 months ago

how to find nth prime number in phyton​

Answers

Answered by vidishasharma134
1

Explanation:

num = int(input("Enter a number: "))

if num > 1:

for i in range(2,num):

if (num % i) == 0:

print(num,"is not a prime number")

print(i,"times",num//i,"is",num)

break.

else:

Similar questions