Skip to content

Instantly share code, notes, and snippets.

@inaz2
Created July 9, 2014 01:41
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 inaz2/8cc80f55d5f1a212ec15 to your computer and use it in GitHub Desktop.
Save inaz2/8cc80f55d5f1a212ec15 to your computer and use it in GitHub Desktop.
seq, factor, awkで素数列挙
$ 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