The sequence 2, 3, 5, 6, 7, 10, 11, $\ldots$ contains all the positive integers from least to greatest that are neither squares nor cubes. what is the $400^{\mathrm{th}}$ term of the sequence?