As reported: Goldman Sachs Analyst CoderPad round (AWM, Bengaluru, 2025):
primeFactorization(x)returns the prime factors whose product isx—6 → [2, 3],5 → [5],12 → [2, 2, 3].
Given an integer x ≥ 2, return its prime factors in non-decreasing order, each repeated as many times as it divides x (so their product is x).
Example 1
x = 6
-> [2,3]
Example 2
x = 12
-> [2,2,3]
Example 3
x = 5
-> [5]
Constraints: 2 ≤ x ≤ 10^12.
Code runner format: one JSON value per line: x. Implement primeFactorization(x); the harness prints the list.