Calculates all the primes from 0 to stop_at using a sieve on an array. def primes(stop_at): ... return [2]+[x*2+3 for x in range(length) if s[x]].
確定! 回上一頁