title: In Java, what am I missing? Prime Numbers between 2 and 100 (Beginner)
body: <pre><code>public class Prime {
  public static void main(String args[]){
      int x;
  
      for(x=2; x &lt; 100; x++){
          if((x % 2)&gt; 0){
              System.out.println(x);
          }
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I get 3, 5, 7, 9, 11, and etc with composite numbers
  instead of 3, 5, 7, 11, and etc with only prime</p>
  
  <p>I just probably can't grasp the idea in coding. </p>