본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬]8658번 Liczba

by 현장 2021. 4. 18.

-코드

n = int(input())
tmp = 2

while 1:
    if n % tmp != 0:
        print(tmp, n - 1)
        break
    tmp += 1