output of sum of 1000 primes (Java Program)