Help me in solving UWCOI21A problem

My issue

can any one explain me this problem, i have used for loop for finding divisior but it was showing an time limit exceeded. some one help me out

My code

# cook your dish here
for _ in range(int(input())):
    n=int(input())
    if n<=9:
        print(1,n)
    else:
        for i in range(2,int(n**0.5)):
            if n%i==0:
                print(i,n//i)
                break

Problem Link: Hidden Numbers Practice Coding Problem - CodeChef

@siddardha5c0
logic is just print 1 and n;

Bro, if just print 1,n was answer then how come it was 2 5 for 10 ? See sample 1 last test case.

@siddardha5c0
there can me multiple correct answer.

Ok, thank you