Hello to all friends, how to code a prime factorization. Any simple explanation ?

Thanks for your help.