{"height":"190","title":"Problem 154","published":"2008-12-23 08:14:21","image_url":null,"provider_url":"https://hatena.blog","type":"rich","description":"http://projecteuler.net/index.php?section=problems&id=154 3\u9805\u4fc2\u6570\u306e\u7d04\u6570\u306b\u3064\u3044\u3066\u3002 haskell\u3067\u306e\u5b9f\u88c5\u3002 import Control.Monad import Data.Array.Unboxed import Data.List n = 2*10^4 d = 10 main = print p154 factor p x | mod x p == 0 = succ.factor p $ div x p | otherwise = 0 factorMemo p = listArray (0,n).scanl (+) 0.map (\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20081223%2F1229987661\" title=\"Problem 154 - \u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","author_url":"https://blog.hatena.ne.jp/jeneshicc/","url":"https://jeneshicc.hatenadiary.org/entry/20081223/1229987661","version":"1.0","blog_title":"\u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66","categories":["Java","Project Euler","Haskell"],"author_name":"jeneshicc","blog_url":"https://jeneshicc.hatenadiary.org/","provider_name":"Hatena Blog"}