You don't actually need to store 10 million values in the table, so it's not a big deal either way.
Hint: think about how large your result can be after the first sum of squares operation. The largest possible result will be much smaller than 10 million...