Created
October 15, 2013 16:29
-
-
Save Taiiwo/6994407 to your computer and use it in GitHub Desktop.
This file contains 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
prime_count = 1 | |
start_number = 2 | |
number_to_check = 2 | |
while prime_count <= 100: | |
result = number_to_check % start_number | |
if result > 0: | |
start_number +=1 | |
elif result == 0: | |
if start_number == number_to_check: | |
print (number_to_check) | |
number_to_check +=1 | |
prime_count +=1 | |
start_number =2 | |
else: | |
number_to_check +=1 | |
start_number = 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment