Skip to content

Baekjoon 1145

1. Problem

문제 확인하기

2. Solution

lst = list(map(int, input().split()))

n = min(lst)
while 1:
    count = 0
    for i in lst:
        if n % i == 0:
            count += 1
    if count > 2:
        break
    n += 1
print(n)