How many positive integers between 0 and 1000 can be written as the sum of at least two squares? Thanks for help.