Unnamed
public python v1 · immutabletop = 1000noprimes = [j for i in range(2, 8) for j in range(i*2, top, i)]primes = [x for x in range(2, top) if x not in noprimes]sum = 0for prime in primes: sum += primesumtop = 1000noprimes = [j for i in range(2, 8) for j in range(i*2, top, i)]primes = [x for x in range(2, top) if x not in noprimes]sum = 0for prime in primes: sum += primesum