0

370= 3^3+7^3+0^3 ; ^ powers, can anyone write python coding to find other that are in 1-1000 range

I want program coding.

15th May 2017, 11:51 AM
lorshan
lorshan - avatar
2 Réponses
0
numbers
15th May 2017, 11:52 AM
lorshan
lorshan - avatar
0
You could define 370 as a variable such as y and the nunbers raised to powers and/or powers themselves are variables such as x1, x2 etc. then create a function to solve for y = 1 and print x1, x2 etc then loop the function and at the end of the loop y += 1 so every iteration 1 is added to y then give tell it to stop at the 1000
15th May 2017, 1:12 PM
Kevin Brendle
Kevin Brendle - avatar