second_commit

This commit is contained in:
Роман Бортников 2026-05-08 13:47:19 +03:00
parent 2acf1db7b5
commit eb183b1b6d

24
main.py
View File

@ -1 +1,23 @@
print("Hello world") def is_prime(n):
for i in range(2, n - 1):
if n % i == 0:
return False
return True
def prime_factors(n: int) -> list:
x = n
c = 2
result = []
while x > 1:
if x % c == 0:
result.append(c)
x //= c
else:
c += 1
print(result)
prime_factors(1)