I am thinking of a 6-digit number. The sum of the digits is 43.

And only two of the following three statements about the number are true:

(1) it's a square number,

(2) it's a cube number, and

(3) the number is under 500000.

Only Statements 1 and 3 are true. the number is 499849.

7072 = 499849

499849<500000