{"categories":["golang"],"blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","provider_name":"Hatena Blog","type":"rich","height":"190","blog_url":"https://y0m0r.hateblo.jp/","provider_url":"https://hatena.blog","url":"https://y0m0r.hateblo.jp/entry/20131023/1382538712","published":"2013-10-23 23:31:52","version":"1.0","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20131023%2F1382538712\" title=\"Go\u8a00\u8a9e\u3067n\u4ee5\u4e0b\u306e\u7d20\u6570\u3092\u6c42\u3081\u308b - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u95a2\u9023 : \u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u3075\u308b\u3044 - brainstorm\u7df4\u7fd2\u306e\u305f\u3081\u66f8\u3044\u3066\u307f\u305f\u3051\u3069\u3059\u3063\u304d\u308a\u3057\u306a\u3044 package main import ( \"fmt\" \"math\" ) func Sieve(n int) chan int { s := make([]bool, n) for x := 2; x < int(math.Sqrt(float64(n)))+1; x++ { if !s[x] { for i := x + x; i < len(s); i = i + x { s[i] = true } } } ch := make(chan int) go func() { for i := 0\u2026","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","author_name":"yuheiomori0718","title":"Go\u8a00\u8a9e\u3067n\u4ee5\u4e0b\u306e\u7d20\u6570\u3092\u6c42\u3081\u308b","width":"100%"}