write a program to add all the prime numbers from one to hundred
<p>What is wrong in my code?</p>

<p>Expected <strong>output=1060</strong> </p>

<p>I checked with 1000 prime numbers sum. It will show correctly 
    output 3682913</p>

<pre><code>public class PrimeNumber {

      public static void main(String args[]){

            int number = 2;
            int count = 0;
            long sum = 0;
            while(count &lt;100){ 
                if(isPrimeNumber(number)){
                    sum += number;
                    count++;
                }
                number++;
            }
            System.out.println(sum);
        }

        private static boolean isPrimeNumber(int number){

            for(int i=2; i&lt;=number/2; i++){
                if(number % i == 0){
                    return false;
                }
            }
            return true;
        }
    }
</code></pre>