{"url":"https://osyo-manga.hatenadiary.org/entry/20120105/1325730383","description":"\u5510\u7a81\u306b Haskell \u304c\u66f8\u304d\u305f\u304f\u306a\u3063\u305f\u306e\u3067 \u4e45\u3005\u306b Haskell \u5165\u9580\uff01 [\u30bd\u30fc\u30b9] prime :: [Int] -> [Int] prime [] = [] prime (x:xs) | (>) (x*x) $ maximum xs = [x] ++ xs | otherwise = (++) [x] $ prime $ filter (\\ y -> (/=) 0 $ mod y x) xs main = print $ prime [2..100] [\u51fa\u529b] [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,\u2026","version":"1.0","author_name":"osyo-manga","width":"100%","type":"rich","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/osyo-manga/","provider_url":"https://hatena.blog","published":"2012-01-05 11:26:23","title":"Haskell \u3067\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9\u3084\u3063\u3066\u307f\u305f","blog_url":"https://osyo-manga.hatenadiary.org/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20120105%2F1325730383\" title=\"Haskell \u3067\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9\u3084\u3063\u3066\u307f\u305f - C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","height":"190","categories":["Haskell"]}