title: Storing my prime generator into an array
body: <p>I'm learning about arrays right now.</p>
  
  <p>I made this short little program. It's a loop that tests then prints prime numbers. 
  Specifically the numbers between 1 and 100.</p>
  
  <p>I want to know if I can take my loop and store each prime number into an array. Here's my code:</p>
  
  <pre><code>public class QC3PrimeNumbers
  {
  
      public static void main (String[] args)
     {
        System.out.println ("Here are the prime numbers: ");
  
         for (int index = 2; index &lt; 100; index++)
        {
           if (index%2 != 0 &amp;&amp; index%3 !=0)
           System.out.print (index + " ");         
        }
  
     }
  }
  </code></pre>