Refactorization of primelist.py
This commit is contained in:
parent
8a7add5391
commit
33f69ad631
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue