Given two integers n and k, find a decomposition of n into k positive integers such that their product is equal to n.
Among all possible decompositions, choose the one that minimizes the difference between the maximum and minimum elements.
Return the k integers sorted in non decreasing order. If there are multiple valid answers, you may return any of them.
Constraints:
n
k
k is strictly less than the total number of positive divisors of n.
Given two integers n and k, find a decomposition of n into k positive integers such that their product is equal to n.
Among all possible decompositions, choose the one that minimizes the difference between the maximum and minimum elements.
Return the k integers sorted in non decreasing order. If there are multiple valid answers, you may return any of them.
Constraints:
n
k
k is strictly less than the total number of positive divisors of n.