find prime numbers in a given range for big input python

Solutions on MaxInterview for find prime numbers in a given range for big input python by the best coders in the world

showing results for - "find prime numbers in a given range for big input python"
Ali
11 Nov 2017
1import math
2print 2
3for num in range(3,101,2):
4    if all(num%i!=0 for i in range(3,int(math.sqrt(num))+1, 2)):
5        print (num)
6
similar questions