How to find Prime Factors till a limit

In this article, let's try to find a solution for the coding problem - Print all the possible prime factors for all the numbers till the given limit.