+ 1

Factorization

Hi, folks. How would you create a code to factor a natural number bigger than the unit into prime factors? For example, if the user digite the number 12, the output will should be 2*2*3.

20th Oct 2017, 5:31 PM
Maicon Pantoja
Maicon Pantoja - avatar
3 Answers
23rd Oct 2017, 3:35 AM
$machitgarha
$machitgarha - avatar
0
20th Oct 2017, 5:43 PM
sayan chandra
sayan chandra - avatar
- 1
the code is now modified with default examples too and o/p is now more mathematical
20th Oct 2017, 5:57 PM
sayan chandra
sayan chandra - avatar