<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iris2304</author_name>
  <author_url>https://blog.hatena.ne.jp/iris2304/</author_url>
  <blog_title>iris2304の日記</blog_title>
  <blog_url>https://iris2304.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>以前の記事で素数判定関数を作りましたが、そこで用いたフェルマーテストではカーマイケル数と呼ばれる特別な合成数を判別できないという欠点があります。ミラー・ラビン素数判定法はそんなフェルマーテストの改良版で、一般に巨大な素数を生成するときはこのアルゴリズムを使用するようです。 ミラー・ラビン素数判定法 アルゴリズム： 入力の数を n とし、判定の回数をｋとする 1 t = n - 1 として、t が奇数になるまでｔを２で割り、割った回数 s を数えておく 2 次の処理をｋ回繰り返す。 3 [1〜n-1] の間でランダムな数 a を選ぶ。 4 y = a^t mod n を計算。 5 y = 1 な…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Firis2304.hatenadiary.org%2Fentry%2F20150825%2F1440430151&quot; title=&quot;誰得なVB6もしくはVBAで動く趣味の多倍長整数計算ライブラリを作る（７）ミラー・ラビン素数判定法 - iris2304の日記&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>2015-08-25 00:29:11</published>
  <title>誰得なVB6もしくはVBAで動く趣味の多倍長整数計算ライブラリを作る（７）ミラー・ラビン素数判定法</title>
  <type>rich</type>
  <url>https://iris2304.hatenadiary.org/entry/20150825/1440430151</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
