<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Area1</author_name>
  <author_url>https://blog.hatena.ne.jp/Area1/</author_url>
  <blog_title>Area1のif(memo[i][j])</blog_title>
  <blog_url>https://area.hateblo.jp/</blog_url>
  <categories>
    <anon>POJ</anon>
    <anon>整数問題</anon>
  </categories>
  <description>問題 2以上10000以下の整数nが与えられる。nを連続する素数の和で表したい。何通りの方法があるか求めよ。素数一つで表せる場合も該当する。 やりかた エラトステネスの篩をして10000以下の素数の数列を求めておき、それらの部分数列の和を全列挙して該当するものの数を数えればいい。予め素数列の和を前計算しておく必要がある。以下ソース。 bool sieve[10100]; int main(int argc, char **argv){ FILL(sieve, true); sieve[0] = sieve[1] = false; for(int i = 2; i &lt;= 10000; i++) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Farea.hateblo.jp%2Fentry%2F2016%2F05%2F11%2F174335&quot; title=&quot;POJ 2739 Sum of Consecutive Prime Numbers - Area1のif(memo[i][j])&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>2016-05-11 17:43:35</published>
  <title>POJ 2739 Sum of Consecutive Prime Numbers</title>
  <type>rich</type>
  <url>https://area.hateblo.jp/entry/2016/05/11/174335</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
