소인수분해
https://www.acmicpc.net/problem/11653
N = int(input())
j=2
while N!=1 :
if N%j==0 :
print(j)
N/=j
else :
j+=1
'PROGRAMMING CODE > PYTHON' 카테고리의 다른 글
[BAEKJOON] No.10039 Python (0) | 2023.02.09 |
---|---|
[BAEKJOON] No.1789 Python (0) | 2023.02.09 |
[BAEKJOON] No.10817 Python (0) | 2023.02.07 |
[BAEKJOON] No. 2935 Python (0) | 2023.02.07 |
[BAEKJOON] No.5355 Python (0) | 2023.02.07 |