TechToFreedom
Published in

TechToFreedom

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?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yang Zhou

Full-Stack Engineer 🥷| Top Writer🏆 (Over 1.3 Million Views)