def init(): MAX = 2000000 primes = [] for number in range(2, MAX): isprime = determineIfPrime(number) if isprime: primes.append(number) primesum = 0 for number in primes: primesum = primesum + number print(primesum)
def init(): MAX = 10001 current = 1 count = 0; currentPrime = 0 while (count < MAX): current = current + 1 isprime = determineIfPrime(current) if(isprime): count = count + 1 currentPrime = current print(currentPrime)