回答編集履歴
2
型間違い
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
long goukei = 0;
|
18
18
|
|
19
|
-
boolean[] notPrime = new
|
19
|
+
boolean[] notPrime = new boolean[n + 1];
|
20
20
|
|
21
21
|
|
22
22
|
|
1
変なピリオド入ってた
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
if (notPrime[i]) continue;
|
32
32
|
|
33
|
-
goukei += i;
|
33
|
+
goukei += i;
|
34
34
|
|
35
35
|
if(i > root) continue;
|
36
36
|
|