title: Is there any way to reduce execution time of this code?
body: <p>I am trying to find the sum of all the divisors of a given number 
  But I am exceeding the time limit,help me to reduce the time limit of this code.   </p>
  
  <pre><code>int a,count=0;
  cin&gt;&gt;a;
  for(int i=2;i&lt;=a/2;i++) {
      if(a%i==0) {
          count=count+i;
      }
  }
  count++;
  cout&lt;&lt;count;
  </code></pre>