Skip to content

Instantly share code, notes, and snippets.

@palmerabollo
Created June 26, 2013 21:39
Show Gist options
  • Save palmerabollo/5871979 to your computer and use it in GitHub Desktop.
Save palmerabollo/5871979 to your computer and use it in GitHub Desktop.
for n in range(2, 1000):
for x in range(2, n):
if n % x == 0:
print n, 'equals', x, '*', n/x
break
else:
print n, ' true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment