title: The operator > is undefined for the argument type(s) Integer, int
body: <p>My coding is to create 100 prime numbers randomly in a range of 1 to 1000, but I got an error message <code>The operator &gt; is undefined for the argument type(s) Integer, int</code> at </p>
  
  <pre><code>Integer date;
  int count = 0;
  for (int i = 0; i &lt; 100; i++)
  {
      date = new Integer(value.nextInt(1000));
      if(date &gt; 1 &amp;&amp; prime(date) != -1)`
          tree.add(date);
  }
  </code></pre>
  
  <p>I guess it yields error since We cannot say integer > 1? But then how should we say it?</p>
  
  <p>And for<code>prime(date) != -1)</code>, I'm not clear for what does it mean, look like unnecessary.</p>