소인수분해
소인수분해
n = int(input())
i = 2
while n != 1:
if n % i == 0:
print(i)
n = n // i
else:
i += 1
- life is short. run.
소인수분해
n = int(input())
i = 2
while n != 1:
if n % i == 0:
print(i)
n = n // i
else:
i += 1