Skip to content

Instantly share code, notes, and snippets.

@abiriadev
Created November 8, 2022 15:26
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 abiriadev/4256a401a625528f60892fad648d7d1d to your computer and use it in GitHub Desktop.
Save abiriadev/4256a401a625528f60892fad648d7d1d to your computer and use it in GitHub Desktop.
p = []
for i in range(2, 100000):
for j in range(2, i):
if i % j == 0:
break
else:
p.append(i)
# print(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment