1990 AIME Problem 1

The increasing sequence 2,3,5,6,7,10,11, \ldots consists of all positive integers that are neither the square nor the cube of a positive integer. Find the 500^{\text {th }} term of this sequence.