+ 13

Python challenge 1

Make a code that returns a 2D list of factors and their powers. E.G. 80 return [[2,4],[5,1]]

24th Jul 2017, 6:52 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
11 Respostas
+ 8
@Гоjко Чутура, awesome!!! @S Vengat, I think you must mark his code as best
25th Jul 2017, 11:25 AM
Tato
Tato - avatar
+ 7
@Manikandan Thanks! What it essentially is prime factorisation, stores the result in dual pairs of numbers, where it means [prime,exponent] for example 2520=2^3*3^2*5^1*7^1, so it should return [[2,3],[3,2],[5,1],[7,1]]
24th Jul 2017, 8:01 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 7
Thanks for the support. BTW this code came #5 in trending: https://code.sololearn.com/cj5h05v8TAcU/?ref=app (note that the output isn't a 2D list because I later modified the code but the initial function I created returns a 2D list.
9th Aug 2017, 1:53 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
i didnt understand the question. please explain congrats for platinum... well deserved 👏👏👍👍👍 keep it up bro... very happy for you
24th Jul 2017, 7:46 AM
Manikandan
Manikandan - avatar
+ 4
Fraterculetta wins the challenge! But think, can we maximise efficiency?
24th Jul 2017, 9:31 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
https://code.sololearn.com/cpDP1rH6C94B/?ref=app I tried to do it as simple as I could
24th Jul 2017, 8:47 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
25th Jul 2017, 7:14 AM
Venkatesh Pitta
Venkatesh Pitta - avatar
+ 3
Looking forward to all advices. https://code.sololearn.com/clYrN8mKLVor/?ref=app
25th Jul 2017, 10:33 AM
Гојко Чутура
Гојко Чутура - avatar
+ 2
@Fraterculeta Arctica , thank you, I appreciate it!!!
25th Jul 2017, 2:17 PM
Гојко Чутура
Гојко Чутура - avatar
+ 1
here is mine.... @ /*S Vengat*/ shortest (22 lines) https://code.sololearn.com/cRZMeBbMZEPZ/?ref=app
27th Jul 2017, 4:53 AM
sayan chandra
sayan chandra - avatar