title: figure out the prime numbers between 0 and 1000?
body: <p>I'm trying to make a programm that can calculate the prime numbers between 0 and 1000, the compiler says it has no warning and no erros too, but when i run the programm it gives me an execution error, i have no ideia what it is, does anybody could take a look at my code??</p>
  
  <p>NOTE: i'm a beginner in programming.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main(){
  
  int i=0;
  
  for (i=0;i&lt;1000;i++){
  
  if (i % 1 == 0 &amp;&amp; i % i == 0){
  printf("%d",i );
  }
  printf(" ");
  
  }
  return 0;
  }
  </code></pre>