Skip to content

Instantly share code, notes, and snippets.

@oconnor663
Created October 8, 2017 21:28
Show Gist options
  • Save oconnor663/ee92bcbf3d68fb3d8503b6f92e834190 to your computer and use it in GitHub Desktop.
Save oconnor663/ee92bcbf3d68fb3d8503b6f92e834190 to your computer and use it in GitHub Desktop.
primality test with Anna
x = 5
# ==============================
# 1 and x will always divide the number, so no need to check those. so check 2 through x-1.
#
# i variable is trad. the "iteration count(er)"
# try to print all the numbers you will need to check in the primality test
i=0
while i<(x-2):
print(i+2)
i=i+1
@theannachau
Copy link

Eeeeee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment