Boost C++ Libraries: Ticket #11495: Miller-Rabin primality test returns false for 2 https://svn.boost.org/trac10/ticket/11495 <pre class="wiki">#include &lt;boost/multiprecision/miller_rabin.hpp&gt; #include &lt;iostream&gt; int main() { std::cout &lt;&lt; boost::multiprecision::miller_rabin_test(2,25) &lt;&lt; '\n'; } </pre><p> prints 0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11495 Trac 1.4.3 Tobias Polzer <tobias.polzer@…> Thu, 23 Jul 2015 14:28:54 GMT summary changed https://svn.boost.org/trac10/ticket/11495#comment:1 https://svn.boost.org/trac10/ticket/11495#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">Miller-Rabin primality test return false for 2</span> → <span class="trac-field-new">Miller-Rabin primality test returns false for 2</span> </li> </ul> Ticket Tobias Polzer <tobias.polzer@…> Thu, 23 Jul 2015 15:06:23 GMT <link>https://svn.boost.org/trac10/ticket/11495#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11495#comment:2</guid> <description> <p> <a class="ext-link" href="https://github.com/boostorg/multiprecision/pull/11"><span class="icon">​</span>https://github.com/boostorg/multiprecision/pull/11</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 10 Aug 2015 11:51:55 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11495#comment:3 https://svn.boost.org/trac10/ticket/11495#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket