<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
    <anon>GPGPU</anon>
    <anon>CUDA</anon>
  </categories>
  <description>ガウスの故事にならって、1000個ずつ区切って素数の個数を数える。1001〜2000に135個、2001〜3000に127個ある。nを1500、2500、…として、横軸を1/log n、縦軸を素数の個数としてプロットした。 素数の密度は、ほぼ1/log nになっていることがわかる。これを素数定理という（厳密には違うが）。 素数の個数を数えるプログラムをそのままGPUに使うとあまり速度が出ない。 __global__ void count_prime(int *data, int width, int height, int nRep) { unsigned int xIndex = block…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090112%2Fp1&quot; title=&quot;素数分布 - inamori’s diary&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>2009-01-12 00:00:00</published>
  <title>素数分布</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20090112/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
