Created
July 9, 2014 01:41
-
-
Save inaz2/8cc80f55d5f1a212ec15 to your computer and use it in GitHub Desktop.
seq, factor, awkで素数列挙
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
$ seq 100 | factor | awk 'NF==2{print $2}' | |
2 | |
3 | |
5 | |
7 | |
11 | |
13 | |
17 | |
19 | |
23 | |
29 | |
31 | |
37 | |
41 | |
43 | |
47 | |
53 | |
59 | |
61 | |
67 | |
71 | |
73 | |
79 | |
83 | |
89 | |
97 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment