Get the square numbers from 1 to 1,000

Can't say I understand it yet.