As you see, the above number is equal to the sum of the squares of its two halves.
Provide all numbers below 1,000,000 possessing this feature.
Bonus question: As above, but the numbers should be equal to the sum of the cubes of their thirds, i.e. ABCDEF= (AB)^3+(CD)^3+(EF)^3