[Boost-bugs] [Boost C++ Libraries] #11495: Miller-Rabin primality test return false for 2

Subject: [Boost-bugs] [Boost C++ Libraries] #11495: Miller-Rabin primality test return false for 2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-07-23 14:09:39


#11495: Miller-Rabin primality test return false for 2
---------------------------------------------+----------------------------
 Reporter: Tobias Polzer <tobias.polzer@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: |
---------------------------------------------+----------------------------
 {{{
 #include <boost/multiprecision/miller_rabin.hpp>
 #include <iostream>

 int main() {
         std::cout << boost::multiprecision::miller_rabin_test(2,25) <<
 '\n';
 }
 }}}
 prints 0.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11495>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC