254. Factor Combinations

Problem

Return all possible factor combinations of a number (factors must be >= 2).

Return all possible combinations of factors (numbers >= 2) that multiply to the given integer n. Each combination should be in ascending order. The result should not include 1 or n itself.

Examples
Input: 12
Output: [[2,6],[2,2,3],[3,4]]
Hints
Related Problems

254. Factor Combinations

Return all possible factor combinations of a number (factors must be >= 2).