title: Fastest possible algorithm to sum numbers up to N
body: <p>I want a really <strong>fast</strong> algorithm or code in C to do the following task: sum all numbers from 1 to N for any given integer N, without assuming N is positive. I made a loop summing from 1 to N, but it is too slow.</p>