Search

24. 백준_Python [11653] 소인수분해

number = int(input()) d = 2 while number != 1: if number % d != 0: d += 1 else: number //= d print(d)
Python
복사