Update isprime.py

This commit is contained in:
Torma Kristóf 2019-04-26 15:37:45 +02:00 committed by GitHub
parent 5c325a5a53
commit 8709174ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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