<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>obelisk2</author_name>
  <author_url>https://blog.hatena.ne.jp/obelisk2/</author_url>
  <blog_title>Camera Obscura</blog_title>
  <blog_url>https://obelisk.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>アルゴリズム・パズル</anon>
  </categories>
  <description>アルゴリズム・パズルです。 問題： 1 1 3 2 3 3 7 9 7 3桁の異なる素数3つを選びます。これら（例えば 113, 233, 797）を上のように横に行列で並べたとき（行を入れ替えたものは別の行列とみなします）、行列を縦に見て得られる3つの数（ここでは 127, 139, 337）がすべて 3桁の素数であるような選び方は何とおりあるでしょうか？ ただし、最初に選んだ素数と縦に見て得られた素数あわせて6つは、すべて異ならなくてはなりません。 Ruby で解いてみました。 q45.rb require 'prime' co = 0 prs = Prime.each(999).sele…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2018%2F01%2F26%2F103325&quot; title=&quot;素数のマトリックス（Ruby） - Camera Obscura&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://images-fe.ssl-images-amazon.com/images/I/51UODCJtLqL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-26 10:33:25</published>
  <title>素数のマトリックス（Ruby）</title>
  <type>rich</type>
  <url>https://obelisk.hatenablog.com/entry/2018/01/26/103325</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
