long variable is not accepting a value
<p>I am trying to assign a value to a long variable but eclipse shows compile error. Can anyone work it out what is wrong with this? I have check and am assured that the value is in long's  range.</p>

<pre><code>public static void main(String[] args) {
        **long num = 600851475143;**

        for(long i = num/2; i&lt;1; i--) {
            if(num%i == 0 &amp;&amp; isPrime(i) == true) {
                System.out.println(i);
                break;
            }
        }

    }
</code></pre>
