Update isprime.py
This commit is contained in:
parent
5c325a5a53
commit
8709174ac0
@ -7,7 +7,6 @@ def isprime(event,context):
|
||||
r = int(n**0.5)
|
||||
f = 5
|
||||
while f <= r:
|
||||
print '\t',f
|
||||
if n%f == 0: return "Not Prime"
|
||||
if n%(f+2) == 0: return "Not Prime"
|
||||
f +=6
|
||||
|
Loading…
Reference in New Issue
Block a user