Created
December 14, 2022 12:26
-
-
Save T1T4N/5d6382fc029d107a5c67a4ece3b7a9bc to your computer and use it in GitHub Desktop.
Python one liner - first 10 primes
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
print(list(filter(lambda x: all(x%d for d in range (2,x)), range(2, 3**10)))[:10]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment