+ 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]]
11 Respostas
+ 8
@Гоjко Чутура, awesome!!!
@S Vengat, I think you must mark his code as best
+ 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]]
+ 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.
+ 4
i didnt understand the question. please explain
congrats for platinum... well deserved 👏👏👍👍👍
keep it up bro... very happy for you
+ 4
Fraterculetta wins the challenge!
But think, can we maximise efficiency?
+ 3
https://code.sololearn.com/cpDP1rH6C94B/?ref=app
I tried to do it as simple as I could
+ 3
https://code.sololearn.com/ccj7mJ7liPJ1/?ref=app
late to the party
+ 3
Looking forward to all advices.
https://code.sololearn.com/clYrN8mKLVor/?ref=app
+ 2
@Fraterculeta Arctica , thank you, I appreciate it!!!
+ 1
here is mine....
@ /*S Vengat*/
shortest (22 lines)
https://code.sololearn.com/cRZMeBbMZEPZ/?ref=app