def primes(n ): x = 2 if n < 2: return [] elif n ==2: return True if x < n and n % x == 0: return False x = x + 1