Skip to content

Commit 07f989e

Browse files
update prime.py
1 parent 3f18c95 commit 07f989e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

brain_games/games/prime.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
def start_game():
77
num = randint(1, 100)
88
total = 0
9+
910
for i in range(1, num + 1):
1011
if num % i == 0:
1112
total += 1
13+
1214

1315
question = f'{num}'
14-
if total <= 2:
16+
if total == 2:
1517
answaer = 'yes'
1618
else:
1719
answaer = 'no'

0 commit comments

Comments
 (0)