回答編集履歴
1
表現を修正
test
CHANGED
@@ -16,17 +16,13 @@
|
|
16
16
|
|
17
17
|
return True
|
18
18
|
|
19
|
-
answer = True
|
20
|
-
|
21
19
|
for k in range(2, int((n ** 0.5) + 1)):
|
22
20
|
|
23
21
|
if n % k == 0:
|
24
22
|
|
25
|
-
|
23
|
+
return False
|
26
24
|
|
27
|
-
break
|
28
|
-
|
29
|
-
return
|
25
|
+
return True
|
30
26
|
|
31
27
|
|
32
28
|
|