title: How does this functions work?
body: <p>could someone explain me how this function works? I can'n understande the passage where it says k--, what does it means?
  and when do i have to consider the last line? when the two " if " clauses are false?</p>
  
  <pre><code>int h(int n, int k)
  {
      int i;
      for(i=2;i&lt;=n;i++)
      {
          if (g(i) &amp;&amp; n%i==0) k--;
          if (k==0) return i;
      } 
      return 0;
  }
  </code></pre>