Refactorization of primelist.py

This commit is contained in:
Mikołaj Lubiak 2022-06-17 17:01:11 +00:00
parent 8a7add5391
commit 33f69ad631
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
#!/usr/bin/env python
from isprime import isPrime
primes = []
def primeList(n: int):
primes = []
for i in range(n):
if isPrime(i):
primes.append(i)