Skip to content

Instantly share code, notes, and snippets.

@AnnikaNoren
Created October 11, 2020 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnnikaNoren/f1a55beec81da158184ae76d171dc441 to your computer and use it in GitHub Desktop.
Save AnnikaNoren/f1a55beec81da158184ae76d171dc441 to your computer and use it in GitHub Desktop.
# https://stackoverflow.com/questions/11619942/print-series-of-prime-numbers-in-python
for num in range(2,10):
if all(num%i!=0 for i in range(2,num)):
print (num)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment