Created
February 17, 2015 08:40
-
-
Save Echocage/65ac39b31c8e39844aeb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def is_prime(number): | |
| for x in range(2, number): | |
| if number % x == 0: | |
| return False | |
| return True | |
| for n in range(1, 101): | |
| if is_prime(n): | |
| print(n, 'is prime') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment