added prime exercise

This commit is contained in:
2024-01-30 01:24:35 +01:00
parent 39e3c38a94
commit f50177f0cd
10 changed files with 242 additions and 166 deletions

12
loops/primes/primes.py Normal file
View File

@ -0,0 +1,12 @@
def is_prime(n: int) -> bool:
# TODO: implement
return False
def next_prime(n: int) -> int:
return -1
def prime_factorize(n: int) -> list[int]:
# TODO: implement
return []