Skip to content

Commit

Permalink
Merge pull request #2276 from 16ratneshkumar/patch-2
Browse files Browse the repository at this point in the history
clean code
  • Loading branch information
geekcomputers authored Jul 27, 2024
2 parents 3dac783 + de6e85c commit 5aa23ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Prime_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def is_prime_b(n):
if n == 2:
return True
else:
for i in range(2, n):
for i in range(2, int(n//2)+1):
if n % i == 0:
return False
return True
Expand Down

0 comments on commit 5aa23ca

Please sign in to comment.