Skip to content

Instantly share code, notes, and snippets.

@Taiiwo
Created October 15, 2013 16:29
Show Gist options
  • Save Taiiwo/6994407 to your computer and use it in GitHub Desktop.
Save Taiiwo/6994407 to your computer and use it in GitHub Desktop.
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