Balanced K-Factor Decomposition

Given integers n and k, split n into exactly k positive integers whose product equals n. Return any split that minimizes the maximum difference between any two numbers, defined as max(factors) - min(factors). You may return the result in any order.

The shipped reference solutions emit the lexicographically smallest sorted tuple among all optimal splits as a deterministic valid witness. Any permutation of an optimal split is also accepted by the canonical checker. Witness grader integration for fully order insensitive judging remains pending with the orchestrator and no shared registry is changed here.

Examples
Input: [100,2]
Output: [10,10]
Hints

Balanced K-Factor Decomposition

Given integers `n` and `k`, split `n` into exactly `k` positive integers whose product equals `n`. Return any split that minimizes the maximum difference between any two numbers, defined as `max(factors) - min(factors)`. You may return the result in any order.