제한사항 3 ≤ n ≤ 1,000,000
def solution(n): answer = 0 i = 2 while (1): if 1 == n%i: answer = i break i = i + 1 return answer