Java - Compute the sum of first n given prime numbers

Java - Compute the sum of first n given prime numbers