Problem 7

This commit is contained in:
Linus Miller 2018-03-26 16:30:13 +02:00
parent 2a762f8a9a
commit 3ec9ae3f21

11
0007.py Normal file
View File

@ -0,0 +1,11 @@
primes = []
i = 2
while (len(primes) < 10001):
if all(i % p != 0 for p in primes):
primes.append(i)
i += 1
print(primes[-1])