class Solution(object):
    def getFactors(self, n):
        """
        :type n: int
        :rtype: List[List[int]]
        """
        res = []
        for i in range(2, int(n ** 0.5) + 1):
            if n % i == 0:
                comb = sorted([i, n // i])
                if comb not in res: #ȥ
                    res.append(comb)

                for item in self.getFactors(n // i) :
                    comb = sorted([i] + item)
                    if comb not in res: #ȥ
                        res.append(comb)

        return res