Java, Finding prime numbers
<p>My goal in this program is to list all of the prime numbers from 1 to 10000.  I keep getting close changing things around and then get further. Any help would be grateful.</p>

<pre><code>public class FindPrimes {

    public static void main(String[] args) {

        for (int x = 0; x &lt; 10000; x++) {
            if(isPrime(x)){


            }
        }       
                System.out.println("Prime numbers &lt; 10k:");
            }

    public static boolean isPrime(int num){     
         boolean isPrime = true;

         for (int y = (num -1); y &gt; 1; y--) {

           if (num % y == 0) {
                 isPrime = false;
                 break;
         }
   }
           if (isPrime) {
           System.out.println();
         }

   }

 }
</code></pre>
