Sunday, September 19, 2010

Count the number of numbers up to n which are both square and cube.

Count the number of numbers up to n which are both square and cube.
e.g., for 1 < n < 1000 answer is 2 (64, 729)

No comments:

Post a Comment