回答編集履歴

2

型間違い

2018/05/25 07:44

投稿

swordone
swordone

スコア20651

test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  long goukei = 0;
18
18
 
19
- boolean[] notPrime = new int[n + 1];
19
+ boolean[] notPrime = new boolean[n + 1];
20
20
 
21
21
 
22
22
 

1

変なピリオド入ってた

2018/05/25 07:44

投稿

swordone
swordone

スコア20651

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