N = int(input())
m = 2
while N!=1:
if N%m==0:
print(m)
N = N//m
else:
m += 1
'알고리즘 > 백준' 카테고리의 다른 글
백준-11720번(숫자의 합)-python3 (1) | 2023.11.30 |
---|---|
백준-11654번(아스키 코드)-python3 (0) | 2023.11.30 |
백준-11651번(좌표 정렬하기)-python3 (0) | 2023.11.30 |
백준-11650번(좌표 정렬하기)-python3 (0) | 2023.11.30 |
백준-11557번(Yangjojang of The Year)-python3 (0) | 2023.11.30 |