Sum of "freaky" squares

Riffing off of "Freaky Square Number!" by Mark Mottian:

Find the sum of all five-digit positive integers that

  1. are square numbers
  2. have all digits square
  3. and are NOT ordered numbers.

Clarifications:

  • An ordered number is one whose digits are in an increasing sequence. For example, 155155 is an ordered number but 515515 is not; 1123511235 is an ordered number but 5132151321 is not.
  • A square is one that can be obtained by multiplying a number by itself (in particular, 0=000=0\cdot 0 is a square).

This problem was inspired by "Freaky Square Number!" by Mark Mottian, which was inspired by Problem #3 of the 2014 South African Programming Olympiad.

×

Problem Loading...

Note Loading...

Set Loading...