81% in the X server - enough said ;)
That's a little simplistic. The X server shows up because it is doing a lot of work on behalf of the client. It could very well be that it is the X server's fault, but it could also be that the client asks the server to do a lot of silly things.
sum += i * i;
Core dumped. M.