I tried to find out the sum of all primes less than 2,000,000 but it is giving the wrong answer. How do I improve my code?
I am Getting 1179908154 as an answer but the Original answer is 142913828922.

```
public class main {
    static boolean isPrime(int n) {
        if (n%2==0) return false;

        for(int i=3;i*i<=n;i+=2) {
            if(n%i==0)
                return false;
        }
        return true;
    }

    public static void main( String[] args) {
        int sum=2;
        for (int j=3;j<2_000_000;j=j+2){
            if(isPrime(j))
                sum+=j;
        }
        System.out.println("SUM : "+sum);
    }
}

```