The number 6 has 4 divisors: 1, 2, 3, and 6. Determine the sum of all numbers between 1 and 1000 that have exactly 7 divisors.
Answer: 793. Only the sixth powers of a prime number have exactly 7 divisors, in this case $2^{6}=64$ and $3^{6}=729$.