Programming/Python & Data Structures
[Baekjoon/Python3] 11653번 소인수분해
HooNeee
2020. 12. 7. 00:38
[Baekjoon/Python3] 11653번 소인수분해
11653번: 소인수분해
첫째 줄에 정수 N (1 ≤ N ≤ 10,000,000)이 주어진다.
www.acmicpc.net
n = int(input())
while n != 1:
for i in range(2, n + 1):
if n % i == 0:
print(i)
n //= i
break