{"type":"rich","url":"https://needed.hatenadiary.jp/entry/20080930/p1","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fneeded.hatenadiary.jp%2Fentry%2F20080930%2Fp1\" title=\" - \u306b\u3089\u3069\u3093\u306f\u3058\u3081\u307e\u3057\u305f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","published":"2008-09-30 00:00:01","author_url":"https://blog.hatena.ne.jp/needed/","title":"","author_name":"needed","version":"1.0","blog_url":"https://needed.hatenadiary.jp/","height":"190","width":"100%","categories":["C++","C++"],"image_url":null,"blog_title":"\u306b\u3089\u3069\u3093\u306f\u3058\u3081\u307e\u3057\u305f","provider_name":"Hatena Blog","description":"\u66f8\u3044\u305f\u3089\u66f8\u3044\u305f\u3067\u30a8\u30e9\u30fc\u3060\u3089\u3051\u306b\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u3001\u3053\u3053\u306b\u30e1\u30e2\u3060\u3051\u3057\u3066\u6b21\u306e\u4f11\u307f\u306b\u66f8\u304f\u3002 void hurui(int* result, int max){ int *old = \u307e\u308d\u3063\u304f(max); //\u307e\u308d\u3063\u304f\u306e\u4f7f\u3044\u65b9\u899a\u3048\u3066\u306a\u3044 \u3075\u308b\u3044\u9055\u3044 result = \u307e\u308d\u3063\u304f(max / 2); //\u3053\u306e\u3050\u3089\u3044\u3067\u8db3\u308a\u305d\u3046 int cnt = 0; //ResultCount for(int i = 0; i for(int i = 2; i * i if(old[i] != 0) { result[cnt] = old[i]; cnt++; for(int j = i; j } } free(old); \u2026"}