lng = ((end/2)-1+end%2) print (lng) # Create array and assume all numbers in array are prime sieve = [True]*(lng+1)