<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Infoment</author_name>
  <author_url>https://blog.hatena.ne.jp/Infoment/</author_url>
  <blog_title>Infomentのブログ ～Excel VBA奮闘記～</blog_title>
  <blog_url>https://infoment.hatenablog.com/</blog_url>
  <categories>
    <anon>Excel</anon>
    <anon>VBA</anon>
    <anon>作ってみた</anon>
    <anon>Python</anon>
  </categories>
  <description>昨日、素数判定は「その数の半分まで約数が存在しないことを確認すればいい？」という考えで関数を作成してみた。 infoment.hatenablog.comこれについて複数の方から、「平方根（ルート）まで確認すればＯＫ」と教えていただいた（ありがとうございます）。そこで、昨日の関数を改修してみる。 といっても、直す部分は一か所。 変更前：num / 2 変更後：num ^ 0.5結果、このようになった。 Function 素数判定(num As Long) As Boolean Dim i As Long If num &lt;= 1 Then 素数判定 = False ElseIf num = 2 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2020%2F05%2F04%2F174210&quot; title=&quot;素数判定は、その値の平方根まで確認すればいい（ついでにPython） - Infomentのブログ ～Excel VBA奮闘記～&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>https://cdn-ak.f.st-hatena.com/images/fotolife/I/Infoment/20200504/20200504172827.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-04 17:42:10</published>
  <title>素数判定は、その値の平方根まで確認すればいい（ついでにPython）</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2020/05/04/174210</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
