<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JUN_NETWORKS</author_name>
  <author_url>https://blog.hatena.ne.jp/JUN_NETWORKS/</author_url>
  <blog_title>JUNのブログ</blog_title>
  <blog_url>https://jun-networks.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Algorithm</anon>
  </categories>
  <description>はじめに 素数列挙アルゴリズムの1つに エラトステネスの篩 というものがあります. ja.wikipedia.org このアルゴリズムを弱い自分がWikipediaの記事通りに実装したのと, 強い他の人が実装したのでは計算にかかる時間が大きく違ったので, なぜ計算時間に差があるのか, どのように改善出来るか調べてみようと思います. 今回実装した関数 自分が実装した関数. import math def get_primes(n): prime_list = [] # 探索リストに2からnまでの整数を昇順で入れる target_list = [i for i in range(2, n)] n_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjun-networks.hatenablog.com%2Fentry%2F2020%2F05%2F08%2F181353&quot; title=&quot;弱い人と強い人のエラトステネスの篩 - JUNのブログ&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>2020-05-08 18:13:53</published>
  <title>弱い人と強い人のエラトステネスの篩</title>
  <type>rich</type>
  <url>https://jun-networks.hatenablog.com/entry/2020/05/08/181353</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
