Leonardo’s Prime Factors- Hackerrank Problem (C++)

https://www.hackerrank.com/challenges/leonardo-and-prime/problem?isFullScreen=true