if divisor found, return it

This commit is contained in:
Torma Kristóf 2020-01-13 13:08:16 +01:00 committed by GitHub
parent 7bfae31385
commit 4833a54df1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ def isprime():
if num > 1:
for i in range(2, num):
if (num % i) == 0:
return "not prime"
return str(i)
else:
return "not prime"