How do I write an adding function? The problem:


  I am the lead developer for a big company, we are making Skynet. I have been assigned to
  
  
    Write a function that inputs and returns their sum
  


RULES:
No answers like 

function sum(a,b){
    return "their sum";
}


EDIT: The accepted answer will be the one with the most upvotes on January 1st, 2014

Note: This is a code-trolling question. Please do not take the question and/or answers seriously. More information here.
That's a very complex problem! Here is how you solve it in C#:

static int Sum(int a, int b)
{
    var aa = ((a &amp; ~877 - b ^ 133 &lt;&lt; 3 / a) &amp; ((a - b) - (a - b))) | a;
    var bb = ((b ^ (a &lt; 0 ? b : a)) &amp; ((b - a) - (b - a))) | b;
    var cc = new List&lt;int&gt;();
    for (int i = 6755 &amp; 1436; i &lt; aa; i -= -1)
    {
        cc.Add((int)Convert.ToInt32(Math.Sqrt(6755 &amp; 1437 &gt;&gt; ((b - a) - (b - a)))));
    }
    for (int i = 6755 &amp; 1436; i &lt; bb; i -= -1)
    {
        cc.Add((int)Convert.ToInt32(Math.Sqrt(6755 &amp; 1437 &gt;&gt; ((a - b) - (a - b)))));
    }
    Func&lt;int,int,int&gt; importantCalculation = null;
    importantCalculation = (x, y) =&gt; y != 0 ? importantCalculation(x ^ y | (6755 &amp; 1436) &gt;&gt; (int)(Convert.ToInt32(Math.Sqrt((b - a) - (b - a) - (-1))) - 1), (x &amp; y) &lt;&lt; (int)Convert.ToInt32((Math.Log10(1) + 1))) : x;
    return cc.Aggregate(importantCalculation);
}







How this code works (I wouldn't add this explanation in my answer to the lazy OP that has to be trolled, don't worry): ((a &amp; ~877 - b ^ 133 &lt;&lt; 3 / a) &amp; ((a - b) - (a - b))) | a returns just a and ((b ^ (a &lt; 0 ? b : a)) &amp; ((b - a) - (b - a))) | b returns just b.

6755 &amp; 1436 returns 0, so in the loop, i actually starts with value 0, and inside the loop, you add the value 1 to the list. So, if a is 5 and b is 3, the value 1 is added 8 times to the list.

The importantCalculation function is a very long function that does nothing else than adding up two numbers. You use the LINQ Aggregate function to add up all numbers. It's also unnecessary to cast the result of Convert.ToInt32 to an int, because it is already an int.

This code is something that the lazy OP wouldn't understand, which is exactly the intension :-)