Skip to content

Commit

Permalink
Fixed python2 issue with math.ceil
Browse files Browse the repository at this point in the history
  • Loading branch information
bharadwajyarlagadda committed Oct 29, 2016
1 parent d4c5471 commit 507ab4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sugar/number.py
Expand Up @@ -100,7 +100,7 @@ def is_prime(num):
"""
count = 0

for i in _range(1, (math.ceil(math.sqrt(num)) + 1)):
for i in _range(1, (int(math.ceil(math.sqrt(num))) + 1)):
if num % i == 0:
count += 1

Expand Down

0 comments on commit 507ab4f

Please sign in to comment.