The question is...

The number of integers between 1 & 1000(both inclusive) which are neither perfect squares nor perfect cubes is?

I sarted off like this-

(tried to count the number of digits whichareperfect squares & cubes)

1-1-1

2-4-8

3-9-27

4-16-64

5-25-125

6-36-216

7-49-343

8-64-512

9-81-729

10-100-100011-121

12-144

.......

which goes upto 31 squared as 32 square > 1000

on counting all the red ones i get40,

so the answer i got was960(which is two less than the given answer)