Skip to content

Instantly share code, notes, and snippets.

@Alkz6 Alkz6/prime.py

Last active Jun 5, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.