Skip to content

Instantly share code, notes, and snippets.

@andresmgot
Created April 20, 2018 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andresmgot/bc6c6d8a50ceb02a5c1b7cf20b1b5154 to your computer and use it in GitHub Desktop.
Save andresmgot/bc6c6d8a50ceb02a5c1b7cf20b1b5154 to your computer and use it in GitHub Desktop.
def foo(event, context):
number = int(event["data"])
if number > 1:
for i in range(2, number):
if (number % i) == 0:
return "is not a prime number"
else:
return "is a prime number"
else:
return "is not a prime number"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment