if divisor found, return it
This commit is contained in:
parent
7bfae31385
commit
4833a54df1
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user