That gives a good speedup!
sum +%= (i % 100) *% (i % 100);
instructions: 57_001_970, sum: 3_283_500_000