title: Some of my prime numbers are coming up as not prime
body: <p>Im not too sure whats wrong with my code, it seems like most things are coming up prime.</p>
  
  <pre><code>public static char isPrime(int x)
          {
              char result = 'r';
              for(int y=2;y&lt;x;y++)
              {
                  if(x%y==0)
                  result = 't';
                  else
                  result = 'f';
              }
              return result;
          }
  </code></pre>