Simplify integer to power

integer to power, I have a list of integers that is very long, it has 9,000 elements, all integers. So I want to simplify it, pass all those numbers to a power that results in the given whole number, and thus get a shorter list. Example:

2,985,984 = 12 ^ 6

There must be some function that returns the representation of an integer as a power.

string myIntegerPow = ToPow (184,528,125) //Output: 45 ^ 5

I simply want a list <string> that contains the same elements as the entire list but in power (thus reducing the length of each element, not the size of the initial list), only that. If it's impossible, nothing happens.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum