Last active
August 29, 2015 13:58
-
-
Save cschlisner/9987917 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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