Skip to content

Instantly share code, notes, and snippets.

@Alkz6
Last active June 5, 2018 01:03
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 Alkz6/af3d9a0632af892537b08893fde03d26 to your computer and use it in GitHub Desktop.
Save Alkz6/af3d9a0632af892537b08893fde03d26 to your computer and use it in GitHub Desktop.
number = 12
prime = True
for i in range(2, number):
if number % i == 0:
prime = False
if prime:
print("prime.")
else:
print("Not prime.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment