Answers for "find prime numbers in a given range for big input python"

0

find prime numbers in a given range for big input python

import math
print 2
for num in range(3,101,2):
    if all(num%i!=0 for i in range(3,int(math.sqrt(num))+1, 2)):
        print (num)
Posted by: Guest on August-19-2021

Code answers related to "find prime numbers in a given range for big input python"

Python Answers by Framework

Browse Popular Code Answers by Language