質問編集履歴
1
コードミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,20 +14,16 @@
|
|
14
14
|
|
15
15
|
for(int i = 2; i < num[0]; i++) {
|
16
16
|
|
17
|
-
|
17
|
+
if(num[0] % i == 0||num[0] <= 2) {
|
18
18
|
|
19
|
-
|
19
|
+
System.out.println(num[0]);
|
20
20
|
|
21
|
-
|
21
|
+
return ;
|
22
22
|
|
23
|
-
|
23
|
+
}
|
24
24
|
|
25
|
-
|
25
|
+
}
|
26
26
|
|
27
|
-
|
27
|
+
System.out.println("prime");
|
28
|
-
|
29
|
-
}
|
30
|
-
|
31
|
-
}
|
32
28
|
|
33
29
|
```
|