{"published":"2014-04-23 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20140423%2Fp1\" title=\"\u7d20\u56e0\u6570\u306e\u500b\u6570\u306e\u5e73\u5747 - 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>","author_name":"inamori","categories":["\u6570\u5b66","Python"],"blog_url":"https://inamori.hateblo.jp/","type":"rich","author_url":"https://blog.hatena.ne.jp/inamori/","url":"https://inamori.hateblo.jp/entry/20140423/p1","version":"1.0","image_url":null,"width":"100%","title":"\u7d20\u56e0\u6570\u306e\u500b\u6570\u306e\u5e73\u5747","description":"Problem 468\u306e\u8a08\u7b97\u91cf\u3092\u898b\u7a4d\u3082\u308b\u3068\u304d\u306b\u3053\u3093\u306a\u554f\u984c\u304c\u601d\u3044\u6d6e\u304b\u3073\u307e\u3057\u305f\u3002 N\u4ee5\u4e0b\u3092\u7d20\u56e0\u6570\u5206\u89e3\u3057\u305f\u3068\u304d\u3001\u7d20\u56e0\u6570\u306e\u500b\u6570\u306e\u5e73\u5747\u306f\uff1f \u4f8b\u3048\u3070\u30012\u30013\u30014 = 22\u30015\u306a\u30891\u500b\u30016 = 2 * 3\u306a\u30892\u500b\u3068\u3057\u307e\u3059\u3002logN\u3088\u308a\u306f\u305a\u3063\u3068\u5c0f\u3055\u3044\u3068\u601d\u308f\u308c\u307e\u3059\u3002\u3068\u308a\u3042\u3048\u305a\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u8abf\u3079\u3066\u307f\u307e\u3057\u3087\u3046\u3002 from itertools import * def div_pow(n, d): e = 0 while n % d == 0: e += 1 n /= d return e, n def make_factors_table(N): a = range(N + 1) for p in takewhil\u2026","blog_title":"inamori\u2019s diary","provider_url":"https://hatena.blog","height":"190","provider_name":"Hatena Blog"}