Riffing off of " Freaky Square Number! " by Mark Mottian :
Find the sum of all five-digit positive integers that
Clarifications:
This problem was inspired by " Freaky Square Number! " by Mark Mottian , which was inspired by Problem #3 of the 2014 South African Programming Olympiad.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Here is a Python 3.4.1 solution. This code is identical to my "Freaky Square Number!" solution, however, I've modified it slightly to check if the number is NOT ordered. I've also made use of a "Sum" variable to return the desired result.
The program returns 313293 as the answer.
For a more palpable understanding, the answer 313293 was obtained by taking the sum of the following values:
10000, 10404, 14400, 19044, 40000, 40401, 44100, 44944, 90000