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: if num > 1:
for i in range(2, num): for i in range(2, num):
if (num % i) == 0: if (num % i) == 0:
return "not prime" return str(i)
else: else:
return "not prime" return "not prime"