{"title":"\u9244\u5247\u672c A26 - Prime Check (5Q, \u26052)","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","width":"100%","version":"1.0","url":"https://drken1215.hatenablog.com/entry/2024/09/27/022423","author_url":"https://blog.hatena.ne.jp/drken1215/","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/80936665/1687765056723440","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2024%2F09%2F27%2F022423\" title=\"\u9244\u5247\u672c A26 - Prime Check (5Q, \u26052) - \u3051\u3093\u3061\u3087\u3093\u306e\u7af6\u30d7\u30ed\u7cbe\u9032\u8a18\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://drken1215.hatenablog.com/","description":"\u7d20\u6570\u5224\u5b9a\u3002\u9244\u5247\u672c\u306e\u554f\u984c\u306a\u306e\u3067\u3001\u30b3\u30fc\u30c9\u306e\u307f\u3002 \u554f\u984c\u3078\u306e\u30ea\u30f3\u30af \u554f\u984c\u6982\u8981 \u500b\u306e\u6574\u6570 \u304c\u305d\u308c\u305e\u308c\u7d20\u6570\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u305b\u3088\u3002 \u5236\u7d04 \u30b3\u30fc\u30c9 #include <bits/stdc++.h> using namespace std; bool is_prime(int N) { if (N <= 1) return false; for (int x = 2; x * x <= N; x++) { if (N % x == 0) return false; } return true; } int main() { int Q, X; cin >> Q; for (int i = 0; i < Q;\u2026","published":"2024-09-27 02:24:23","categories":["AtCoder","\u9244\u5247\u672c","\u9244\u5247\u672c\u26052","\u9244\u5247\u672cA\u554f\u984c","\u6570\u5b66(\u6574\u6570\u554f\u984c)","\u6613\u3057\u3044\u6574\u6570\u554f\u984c","\u7b97\u6570\u3068\u6570\u5b66","\u7d20\u6570","\u7d20\u6570\u5224\u5b9a","O(\u221aN)\u307e\u3067\u8003\u3048\u308c\u3070\u5341\u5206","NoviSteps5Q"],"blog_title":"\u3051\u3093\u3061\u3087\u3093\u306e\u7af6\u30d7\u30ed\u7cbe\u9032\u8a18\u9332","height":"190","author_name":"drken1215"}