{"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20130511%2Fp1\" title=\"PyPy\u3092\u901f\u304f\u3059\u308b\uff084\uff09 \u5185\u5305\u8868\u8a18 - 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>","description":"\u4f8b\u3048\u3070\u3001\u3053\u3093\u306a\u30b3\u30fc\u30c9\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002 def divs1(N): return [ N / n for n in xrange(1, N + 1) ] N = 10 ** 8 print sum(div1(N)) \u5185\u5305\u8868\u8a18\u3067\u3059\u306d\u3002\u3053\u308c\u3092\u9593\u9055\u3063\u3066\u3082append\u3092\u4f7f\u3063\u3066\u6b21\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002 def divs2(N): a = [] for n in xrange(1, N + 1): a.append(N / n) return a Python\u3067\u30826.5\u79d2 -> 11.0\u79d2\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001PyPy\u3060\u30680.86\u79d2 -> 2.53\u79d2\u3068\u6975\u7aef\u306b\u9045\u304f\u306a\u308a\u307e\u3057\u305f\u3002 \u305f\u3068\u3048\u8907\u96d1\u306a\u5f0f\u3067\u5185\u5305\u8868\u8a18\u3067\u306f\u66f8\u304d\u2026","image_url":null,"title":"PyPy\u3092\u901f\u304f\u3059\u308b\uff084\uff09 \u5185\u5305\u8868\u8a18","version":"1.0","type":"rich","published":"2013-05-11 00:00:00","url":"https://inamori.hateblo.jp/entry/20130511/p1","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","categories":["Python","PyPy"],"author_url":"https://blog.hatena.ne.jp/inamori/","blog_title":"inamori\u2019s diary","author_name":"inamori","blog_url":"https://inamori.hateblo.jp/","width":"100%"}