{"width":"100%","type":"rich","description":"\u554f\u984c http://uva.onlinejudge.org/external/112/11287.html\u6982\u8981 Fermat\u306e\u5c0f\u5b9a\u7406\uff1a\uff08\u307e\u305f\u306f\uff09 \u3067\u3042\u308b\u304c\u3001p\u304c\u7d20\u6570\u3067\u306a\u3044\u3068\u304d\u3053\u306e\u95a2\u4fc2\u5f0f\u304c\u6210\u308a\u7acb\u3064 p \u3092 \u57fa\u6570 a \u306b\u304a\u3051\u308b pseudoprimes \u3068\u3044\u3046\u3002 p \u304c \u57fa\u6570 a \u306b\u304a\u3051\u308b pseudoprimes \u3067\u3042\u308b\u304b\u3069\u3046\u304b\u5224\u5b9a\u305b\u3088\u3002\u89e3\u6cd5 \u305d\u306e\u307e\u307e\u3002\u305f\u3060\u3057\u3001\u3079\u304d\u4e57\u306f\u87fb\u672c\u306e mod_pow() \u3092\u4f7f\u3046\u3068\u826f\u3044\u3002\u203bmod_pow() \u306b\u3064\u3044\u3066\uff08\u87fb\u672cP.116\u3068\u307b\u307c\u540c\u3058\u5185\u5bb9\uff09 \u304c \u5076\u6570\u306e\u3068\u304d\u3001\u3088\u308a\u3001\u306b\u5e30\u7740\u53ef\u80fd\u3002\u304c\u5947\u6570\u306e\u5834\u5408\u306f\uff08\u3092\u3067\u6574\u6570\u9664\u7b97\u3057\u3066\u3044\u308b\u306e\u3067\u304c\u4e00\u500b\u4f59\u308b\uff09\u3068\u306a\u308a\u3001\u540c\u69d8\u306b\u306b\u5e30\u7740\u3059\u308b\u3002\u3053\u306e\u518d\u5e30\u306b\u3088\u2026","version":"1.0","author_url":"https://blog.hatena.ne.jp/moistx/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","categories":["UVa"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140412%2F1397326402\" title=\"UVa11287 Pseudoprime numbers - Logfiles\" 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":"moistx","blog_title":"Logfiles","url":"https://logfiles.hatenablog.com/entry/20140412/1397326402","blog_url":"https://logfiles.hatenablog.com/","height":"190","title":"UVa11287 Pseudoprime numbers","published":"2014-04-12 03:13:22","image_url":null}