+ 7

Challenge: Represent a number n as product of prime numbers.

Challenge: Represent a number n as product of prime numbers. Guys, n is an input number and we need to represent it in the form of product prime numbers. Print the input value is equal to the product of prime numbers Exemple: input n = 18 ==> 18 = 2*3*3 input n = 24 ==> 24= 2*2*2*3 input n = 17 ==> 17= 17*1 as 17 is a prime number input n = 258 ==> 258 = 2*3*43

11th Aug 2017, 12:52 PM
Lahmadi Mohamed
Lahmadi Mohamed - avatar
8 ответов
11th Aug 2017, 1:12 PM
Lahmadi Mohamed
Lahmadi Mohamed - avatar
+ 13
Already made one, using JS : https://code.sololearn.com/WL2DigIgt0j7/
11th Aug 2017, 3:27 PM
Dev
Dev - avatar
+ 11
11th Aug 2017, 3:51 PM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
11th Aug 2017, 3:20 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 5
I made aprime factorisation code, which is essentially what yoy are doing. But one problwm, I converted all the same prime factors into powers. https://code.sololearn.com/cj5h05v8TAcU/?ref=app Went to #5 in trending
12th Aug 2017, 12:09 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
11th Aug 2017, 4:36 PM
ysraelcon
ysraelcon - avatar
11th Aug 2017, 5:03 PM
Abdelfattah Toulaoui
Abdelfattah Toulaoui - avatar
+ 2
https://code.sololearn.com/cUw5PPsYYxcr/?ref=app
11th Aug 2017, 6:14 PM
Ravi Bagdi
Ravi Bagdi - avatar