title: Project Euler #3 Java Solution Problem
body: <pre><code>class eulerThree {
  
      public static void main(String[] args) {
  
          double x = 600851475143d; 
  
          for (double z = 2; z*z &lt;= x; z++) {
  
              if (x%z == 0) {
  
                  System.out.println(z + "PRIME FACTOR");
  
              }
  
          }
  
      }
  
  }
  </code></pre>
  
  <p>and the output is:</p>
  
  <pre><code>71.0
  839.0
  1471.0
  6857.0
  59569.0
  104441.0
  486847.0
  </code></pre>
  
  <p>So, I assume 486847 is the largest prime factor of x, but project euler says otherwise. I don't see a problem in my code or my math, so I'm pretty confused. Can you see anything I can't?</p>