title: Prime numbers between 1 to 100 in C Programming Language
body: <p>I want to print prime numbers between 1 to 100, I write my code like the following but when I run it, it starts printing 3,7,11,17....91
  Why not the code print 2?
  Please help me friends</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main(void)
  {
      for(int i=2;i&lt;100;i++)
      {
          for(int j=2;j&lt;i;j++)
          {
              if(i%j==0)
                  break;
              else if(i==j+1)
                  printf("%d\n",i);
          }
      }
  }
  </code></pre>