Submission
Status:
P----P----
Subtask/Task Score:
20/100
Score: 20
User: agnes_chan
Problemset: แยกตัวประกอบ
Language: python
Time: 0.014 second
Submitted On: 2026-05-06 11:55:06
N = int(input())
for c in range(2,1+int(N**0.5)):
if N%c: continue
if N<c*c: exit()
print(c,end='^')
k = 0
while N%c==0: N , k = N//c , k+1
print(k,end=' ')