When needed a list of unique divisors (2nd solutinon here), creating (and destructing) a 2D array in prime_division is unnecessary.
prime_division
Creating an 1D array should be less expensive.