백준
import sys
sys.stdin = open('input.txt')
input = sys.stdin.readline
t = int(input())
visited = [0] * 10001
def check(x):
for i in range(2, x):
if x % i == 0:
return False
return True
for i in range(2, 101):
if check(i):
for j in range(i * 2, 10001, i):
visited[j] = 1
for _ in range(t):
num = int(input())
mid = num // 2
left = mid
right = mid
while left > 1 and right < 10001:
if visited[left] == 0 and visited[right] == 0:
if left + right == num:
print(left, right)
break
else:
left -= 1
right += 1
import sys
sys.stdin = open('input.txt')
input = sys.stdin.readline
n = int(input())
divide = 2
# <시간 초과>
# def check(x):
# for i in range(2, int(x**(1/2))):
# if x % i == 0:
# return False
# return True
# while n != 1:
# if n % divide == 0:
# n //= divide
# print(divide)
# else:
# divide += 1
# while not check(divide):
# divide += 1
while n != 1:
if n % divide == 0:
n //= divide
print(divide)
else:
divide += 1
하루를 마치고