{"image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20111122%2Fp1\" title=\"\u30d3\u30c3\u30c8\u3054\u3068\u306e\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u3075\u308b\u3044 - inamori\u2019s diary\" 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%","description":"Python\u3067\u4f55\u3082\u8003\u3048\u305a\u306b\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u3075\u308b\u3044\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3068\u3053\u3093\u306a\u611f\u3058\u3067\u3057\u3087\u3046\u304b\u3002 def sieve(max_n): a = [ True ] * L for p in takewhile(lambda n: n * n < L, (n for n in xrange(2, L) if a[n])): for k in xrange(p * 2, L, p): a[k] = False Boolean\u306e\u914d\u5217\u3092\u4f5c\u3063\u3066\u3075\u308b\u3044\u306b\u304b\u3051\u307e\u3059\u3002\u3053\u306eBoolean\u3092\u30d3\u30c3\u30c8\u306b\u3057\u3088\u3046\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002\u3053\u3046\u3059\u308b\u3068\u30e1\u30e2\u30ea\u304c\u7bc0\u7d04\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b2\u306e\u500d\u6570\u30013\u306e\u500d\u6570\u306f\u6700\u521d\u304b\u3089\u7121\u8996\u3059\u308b\u3001\u3059\u306a\u308f\u30616\u3067\u5272\u3063\u3066\u4f59\u308a1\u307e\u305f\u306f5\u2026","height":"190","blog_title":"inamori\u2019s diary","title":"\u30d3\u30c3\u30c8\u3054\u3068\u306e\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u3075\u308b\u3044","url":"https://inamori.hateblo.jp/entry/20111122/p1","categories":["\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0","Python"],"version":"1.0","provider_url":"https://hatena.blog","author_name":"inamori","type":"rich","blog_url":"https://inamori.hateblo.jp/","published":"2011-11-22 00:00:00","author_url":"https://blog.hatena.ne.jp/inamori/","provider_name":"Hatena Blog"}