{"blog_title":"Gemma\u306e\u65e5\u8a18","width":"100%","description":"Haskell\u306a\u3069\u3067\u4eba\u6c17\u306e1\u884c\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9\u306f\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u672c\u6765\u306e\u8a08\u7b97\u91cf\u3088\u308a\u9045\u3044\u3089\u3057\u3044\u3002 sieve (p : xs) = p : sieve [x | x <- xs, x \u2018mod\u2018 p > 0] LtU:The Genuine Sieve of Eratosthenes Wikipedia:en:Sieve of Eratosthenes \u305d\u308c\u3092\u53d7\u3051\u3066\u3001LtU\u3067\u4ee5\u4e0b\u306e\u901f\u3044Haskell\u30b3\u30fc\u30c9\u304c\u3042\u3063\u305f\u3002 primes = 2 : xor [3..] (composites primes) composites (p:ps) = cs where cs = (p*p) : xor (ma\u2026","provider_name":"Hatena Blog","version":"1.0","categories":[],"author_url":"https://blog.hatena.ne.jp/Gemma/","author_name":"Gemma","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgemma.hatenadiary.org%2Fentry%2F20090420%2F1240260347\" title=\" Gauche\u3067\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9\u3067\u7d20\u6570\u30b9\u30c8\u30ea\u30fc\u30e0(\u4e16\u9593\u4e00\u822c\u306e\u3084\u3064\u3088\u308a\u901f\u3044) - Gemma\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_url":"https://hatena.blog","type":"rich","title":" Gauche\u3067\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9\u3067\u7d20\u6570\u30b9\u30c8\u30ea\u30fc\u30e0(\u4e16\u9593\u4e00\u822c\u306e\u3084\u3064\u3088\u308a\u901f\u3044)","published":"2009-04-20 05:45:47","blog_url":"https://gemma.hatenadiary.org/","url":"https://gemma.hatenadiary.org/entry/20090420/1240260347","image_url":null}