Skip to content

Instantly share code, notes, and snippets.

@6LYTH3
Created January 4, 2019 03:14
Show Gist options
  • Save 6LYTH3/f623a160d96b1b1df84a3ae904acc0fb to your computer and use it in GitHub Desktop.
Save 6LYTH3/f623a160d96b1b1df84a3ae904acc0fb to your computer and use it in GitHub Desktop.
list of prime number
def is_prime(x):
print(x)
a = (x//i == x/i for i in range(x-1, 1, -1))
print(" - ", list(a))
prime = []
for i in range(1, 10):
if is_prime(i):
prime.append(i)
# print(prime)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment