title: I wrote the "Ackerman" function in Visual Studio. Stack Overflow occured very quickly
body: <p>I was watching this video - <a href="https://youtu.be/i7sm9dzFtEI" rel="nofollow noreferrer">https://youtu.be/i7sm9dzFtEI</a>  on youtube, and decided it would be fun to copy that function in C#</p>
  
  <p>Well I ran it, and it stopped after 21 calls and around one second.  The guy's program on the video has apparently been running for about 4 weeks and is still running.</p>
  
  <pre><code>static int ack(int m, int n)
  {
      int answer;
      if (m == 0) answer = n + 1;
      else if (n == 0) answer = ack(m - 1, 1);
      else answer = ack(m - 1, ack(m, n - 1));
      return answer;
  }
  static void Main(string[] args)
  {
      for (int i = 0; i &lt; 6; i++)
          for (int j = 0; j &lt; 6; j++)
              Console.WriteLine($"ackerman ({i},{j}) is:{ack(i, j)}");
      Console.ReadLine();
  }
  </code></pre>
  
  <p>Is there something I can do to make mine run for longer?</p>
  
  <p><strong>Edit:</strong> I changed from 'Debug' to 'Release' and got one more iteration and a few more seconds.</p>