<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>d-lan</author_name>
  <author_url>https://blog.hatena.ne.jp/d-lan/</author_url>
  <blog_title>D man? blog</blog_title>
  <blog_url>https://d-l.hateblo.jp/</blog_url>
  <categories>
    <anon>D言語</anon>
  </categories>
  <description>後輩に素数プログラムを書いてくださいと言われたので書いてみた どうやら後輩はC言語を勉強中であり、C言語でとりあえずささっと実装した 1~100までの素数を出せばいいらしい1分で作ったコード #include&lt;stdio.h&gt; #include&lt;math.h&gt; #define N 100 int main() { int a[101] = { 0 }; int i, i2; for (i = 2; i &lt;= (int)sqrt(N); i++) { for (i2 = i; i*i2 &lt;= N; i2++) { a[i*i2] = 1; } } for (i = 2; i &lt;= N; i++)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fd-l.hateblo.jp%2Fentry%2F2018%2F06%2F05%2F013430&quot; title=&quot;D言語でかく素数プログラム(エラトステネスの篩) - D man? blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-06-05 01:34:30</published>
  <title>D言語でかく素数プログラム(エラトステネスの篩)</title>
  <type>rich</type>
  <url>https://d-l.hateblo.jp/entry/2018/06/05/013430</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
