Numbers of Armstong WP34s
|
11-30-2015, 08:27 PM
Post: #2
|
|||
|
|||
RE: Numbers of Armstong WP34s
Instead of splitting the number into digits to calculate the sum of the cubes you can create both number and sum of the cubes from the digits. This leads to four nested loops to test 4-digit numbers.
Here's a Python program: Code: for a in range(10): Result: 0 1 153 370 371 407 And this program is for the HP-42S: Code: { 108-Byte Prgm } Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Numbers of Armstong WP34s - ggauny@live.fr - 11-30-2015, 07:02 PM
RE: Numbers of Armstong WP34s - Thomas Klemm - 11-30-2015 08:27 PM
RE: Numbers of Armstong WP34s - Dave Frederickson - 11-30-2015, 09:21 PM
RE: Numbers of Armstong WP34s - ggauny@live.fr - 12-01-2015, 06:35 AM
RE: Numbers of Armstong WP34s - Thomas Klemm - 12-01-2015, 10:11 AM
RE: Numbers of Armstong WP34s - ggauny@live.fr - 12-01-2015, 11:14 AM
RE: Numbers of Armstong WP34s - Thomas Klemm - 12-01-2015, 01:07 PM
RE: Numbers of Armstong WP34s - Albert Chan - 07-30-2018, 12:58 AM
|
User(s) browsing this thread: 1 Guest(s)