{"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblue-jam.hatenablog.com%2Fentry%2F2014%2F08%2F12%2F154355\" title=\"POJ 3126: Prime Path - blue_jam\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://blue-jam.hatenablog.com/entry/2014/08/12/154355","title":"POJ 3126: Prime Path","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"version":"1.0","blog_url":"https://blue-jam.hatenablog.com/","height":"190","author_url":"https://blog.hatena.ne.jp/blue_jam/","image_url":null,"type":"rich","description":"\u6982\u8981 2\u3064\u306e4\u6841\u306e\u7d20\u6570A, B\u304c\u4e0e\u3048\u3089\u308c\u308b\uff0eA\u306b\u5bfe\u3057\u3066\uff0c\u300c\u3069\u308c\u304b\u4e00\u3064\u306e\u6841\u3092\u66f8\u304d\u63db\u3048\u3066\u5225\u306e\u7d20\u6570\u306b\u3059\u308b\uff08\u305f\u3060\u3057\uff0c\u6700\u4e0a\u4f4d\u306f0\u306b\u66f8\u304d\u63db\u3048\u3066\u306f\u3044\u3051\u306a\u3044\uff09\u300d\u3068\u3044\u3046\u64cd\u4f5c\u3092\u6700\u5c0f\u4f55\u56de\u884c\u3048\u3070B\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304b\uff0e \u89e3\u6cd5 \u7d20\u6570\u306e\u8868\u3092\u4f5c\u308a\uff0c\u5e45\u512a\u5148\u63a2\u7d22\uff0e bool isntPrime[10000], visited[10000]; int main(){ memset(isntPrime, 0, sizeof(isntPrime)); for(int i = 2; i <= 9999; ++i){ if(isntPrime[i]) continue; for(int j = i + i; j <= 9999; j +\u2026","published":"2014-08-12 15:43:55","width":"100%","provider_url":"https://hatena.blog","blog_title":"blue_jam\u306e\u65e5\u8a18","author_name":"blue_jam"}