ProgrammingHero1 / 100-plus-python-coding-problems-with-solutions

A list of python problems for beginners and intermediate developers
http://www.programming-hero.com
844 stars 366 forks source link

Prime Factors #9

Open chakrireddy1609 opened 3 years ago

chakrireddy1609 commented 3 years ago

The result being returned for the program is incorrect for few inputs as same number is duplicated. Example : For input 100, result shows [2, 2, 5, 5] For input 25, result shows [5,5] For input 225, result shows [3, 3, 5, 5]