Algorithm Interview
Finding Prime Factors of an Integer in Python
A frequently-asked question in tech interviews
As we all know, an integer can be decomposed into the multiplication of several prime factors.
But how to print a number’s prime factors in Python? Effectively and efficiently?