Example of an algorithm that adds up integer numbers consecutively. Really shows how maths rules can speed things up. If you were to add 1 + 2 = 3 and then add this answer to the next number (+3) all the way to 1000000 in a loop, this would take considerably longer. In my example you can change the end number to what ever integer you like. I did some number key code checking. Enjoy.