[VA] Short & Sweet Math Challenges #23: "May the 4th Be With You !" Special
|
06-25-2018, 12:42 PM
Post: #43
|
|||
|
|||
RE: [VA] Short & Sweet Math Challenges #23: "May the 4th Be With You !" ...
(06-24-2018 02:57 PM)Thomas Klemm Wrote: Here's a Python program for the sixth step: I gather that Valentin's original definition of a selfie as the reverse of the sum of powers is aimed at eliminating numbers which end in zero. I'm not a Python expert, but if you amend the third line of your program to test that the last digit of s is not zero, it will return Valentin's original 37 numbers (at some cost in execution speed). John |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)