Writing a number as a multiplication of prime numbers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Writing a number as a multiplication of prime numbers

So I have this problem for school... and it's simple until you get to the prime factors. How do I divide my number with only primes. Can someone help me with the full code ? C++

28th Mar 2018, 9:32 AM
Oprea Radu
Oprea Radu - avatar
1 Answer
28th Mar 2018, 10:26 AM
🇮🇷 M N