https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112015-10-10T02:33:40ZRuby Issue Tracking SystemRuby master - Feature #11578: Add a method to check if a number is probably prime or composite (Patch included)https://bugs.ruby-lang.org/issues/11578?journal_id=544142015-10-10T02:33:40Zchaitanyav (NagaChaitanya Vellanki)nagachaitanya.vellanki@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/5516">0001-Add-Prime.probably_prime.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5516/0001-Add-Prime.probably_prime.patch">0001-Add-Prime.probably_prime.patch</a> added</li></ul> Ruby master - Feature #11578: Add a method to check if a number is probably prime or composite (Patch included)https://bugs.ruby-lang.org/issues/11578?journal_id=544632015-10-16T19:12:23Zchaitanyav (NagaChaitanya Vellanki)nagachaitanya.vellanki@gmail.com
<ul><li><strong>Subject</strong> changed from <i>add a method to check if a number is probably prime or composite</i> to <i>Add a method to check if a number is probably prime or composite (Patch included)</i></li><li><strong>Assignee</strong> set to <i>chaitanyav (NagaChaitanya Vellanki)</i></li></ul> Ruby master - Feature #11578: Add a method to check if a number is probably prime or composite (Patch included)https://bugs.ruby-lang.org/issues/11578?journal_id=554182015-12-09T22:04:02Zchaitanyav (NagaChaitanya Vellanki)nagachaitanya.vellanki@gmail.com
<ul><li><strong>Assignee</strong> changed from <i>chaitanyav (NagaChaitanya Vellanki)</i> to <i>matz (Yukihiro Matsumoto)</i></li></ul> Ruby master - Feature #11578: Add a method to check if a number is probably prime or composite (Patch included)https://bugs.ruby-lang.org/issues/11578?journal_id=554282015-12-10T01:30:57Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>Use OpenSSL::BN.</p> Ruby master - Feature #11578: Add a method to check if a number is probably prime or composite (Patch included)https://bugs.ruby-lang.org/issues/11578?journal_id=554472015-12-10T16:24:14Zchaitanyav (NagaChaitanya Vellanki)nagachaitanya.vellanki@gmail.com
<ul></ul><p>Yui NARUSE wrote:</p>
<blockquote>
<p>Use OpenSSL::BN.</p>
</blockquote>
<p>Rehearsal ---------------------------------------------------------------<br>
Probably prime 11.990000 0.060000 12.050000 ( 12.054223)<br>
OpenSSL::BN.prime_fasttest? 0.020000 0.000000 0.020000 ( 0.024519)<br>
----------------------------------------------------- total: 12.070000sec</p>
<pre><code> user system total real
</code></pre>
<p>Probably prime 12.090000 0.050000 12.140000 ( 12.147566)<br>
OpenSSL::BN.prime_fasttest? 0.020000 0.000000 0.020000 ( 0.021217)</p>
<p>Thanks for closing.</p> Ruby master - Feature #11578: Add a method to check if a number is probably prime or composite (Patch included)https://bugs.ruby-lang.org/issues/11578?journal_id=554482015-12-10T16:26:04Zchaitanyav (NagaChaitanya Vellanki)nagachaitanya.vellanki@gmail.com
<ul></ul><p>NagaChaitanya Vellanki wrote:</p>
<blockquote>
<p>Yui NARUSE wrote:</p>
<blockquote>
<p>Use OpenSSL::BN.</p>
</blockquote>
<p>Rehearsal ---------------------------------------------------------------<br>
Probably prime 11.990000 0.060000 12.050000 ( 12.054223)<br>
OpenSSL::BN.prime_fasttest? 0.020000 0.000000 0.020000 ( 0.024519)<br>
----------------------------------------------------- total: 12.070000sec</p>
<p>user system total real<br>
Probably prime 12.090000 0.050000 12.140000 ( 12.147566)<br>
OpenSSL::BN.prime_fasttest? 0.020000 0.000000 0.020000 ( 0.021217)</p>
<p>Thanks for closing.</p>
</blockquote>