{"description":"N = 100\u4ee5\u4e0b\u306e\u7d20\u6570\u3092\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u3002 #include <gmp.h> int main(void) { unsigned int N = 100UL; mpz_t p; mpz_init_set_ui(p, 2UL); do { gmp_printf(\"%Zd \", p); mpz_nextprime(p, p); } while (mpz_cmp_ui(p, N) <= 0); gmp_printf(\"\\n\"); mpz_clear(p); return 0; } 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 \u2026","provider_url":"https://hatena.blog","categories":["C","GMP/MPFR"],"author_name":"quasistatic","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/quasistatic/","blog_title":"\u501f\u308a\u3066\u304d\u305f\u732b\u306e\u3088\u3046\u306b\u9759\u304b","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fquasistatic.hatenadiary.jp%2Fentry%2F20130210%2Fp1\" title=\" 100\u4ee5\u4e0b\u306e\u7d20\u6570 - \u501f\u308a\u3066\u304d\u305f\u732b\u306e\u3088\u3046\u306b\u9759\u304b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","blog_url":"https://quasistatic.hatenadiary.jp/","image_url":null,"published":"2013-02-10 00:00:00","title":" 100\u4ee5\u4e0b\u306e\u7d20\u6570","width":"100%","type":"rich","url":"https://quasistatic.hatenadiary.jp/entry/20130210/p1"}