Skip to content

Instantly share code, notes, and snippets.

@cschlisner
Last active August 29, 2015 13:58
Show Gist options
  • Save cschlisner/9987917 to your computer and use it in GitHub Desktop.
Save cschlisner/9987917 to your computer and use it in GitHub Desktop.
import tools.*;
class q10{
public static void main(String args[]){
int sum = 0;
sieve s = new sieve(2000000);
int[] a = s.getPrimes();
for (int i : a)
sum += i;
System.out.println(sum); // 1876609501
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment