Answers for "find 100th prime number python"

2

find prime number in given range in python

#not made by me but a person name "Concerned Cod" i put only input in it so it makes easy to copy-paste LOL
start = int(input("enter start range : "))
end = int(input("end range : "))
 
for i in range(start,end):
  if i>1:
    for j in range(2,i):
        if(i % j==0):
            break
    else:
        print(i)
Posted by: Guest on April-07-2021
2

get prime number python

from num_tool import is_prime
print(is_prime(3))

#returns True because 3 is a prime
Posted by: Guest on September-13-2021

Code answers related to "find 100th prime number python"

Python Answers by Framework

Browse Popular Code Answers by Language