<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ke_takahashi</author_name>
  <author_url>https://blog.hatena.ne.jp/ke_takahashi/</author_url>
  <blog_title>memorandums</blog_title>
  <blog_url>https://memorandums.hatenablog.com/</blog_url>
  <categories>
    <anon>つぶやき</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>普段あまりYouTubeは見ないのですが（時間が溶けるので）、昨日、たまたま関係する動画がオススメされたので観てました。面白いなと思いWikipediaでちらってアルゴリズムをみて、こんなにシンプルなのに動作が荒ぶるんだな。。。と単純に興味がわいてPythonで簡単なコードを書き始めました。 a = [] for i in range(1, 10000): x = i c = 0 while x != 1: if x % 2 == 1: x = x * 3 + 1 else: x = int(x / 2) c += 1 #print(c) a.append(c) a.sort() with o…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemorandums.hatenablog.com%2Fentry%2F2024%2F06%2F16%2F112714&quot; title=&quot;コラッツ予想の計算用コードを遊びで書いていてPythonとRubyの比較が気になって興味がズレていった話 - memorandums&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/k/ke_takahashi/20240616/20240616111218.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-06-16 11:27:14</published>
  <title>コラッツ予想の計算用コードを遊びで書いていてPythonとRubyの比較が気になって興味がズレていった話</title>
  <type>rich</type>
  <url>https://memorandums.hatenablog.com/entry/2024/06/16/112714</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
