Skip to main content
1 of 2
user avatar
user avatar

Erlang (escript), 79 bytes

Filters out all factors, and selects the ones in the middle.

f(X)->Y=lists:last([I||I<-lists:seq(1,ceil(math:sqrt(X))),X rem I==0]),[Y,X/Y].

Try it online!

user92069