title: No overflow exception for int in C#?
body: <p>I had this weird experience with problem number 10 on <a href="http://projecteuler.net/" rel="noreferrer">Project Euler</a> (great site by the way). The assignment was to calculate the sum of all the prime numbers below two million.</p>
  
  <p>I used an int for the sum, and my algorith produced an answer, but when i pasted it to verify the answer, it was wrong.</p>
  
  <p>It turned out that the result was too big to fit in an int, but wouldn't this cause an overflow error or something? Instead, it just returned a value far off from the real answer.</p>
  
  <p>When I changed the type to long, everything was hunky dory.</p>