Project

General

Profile

« Previous | Next » 

Revision 68354c35

Added by Marc-Andre Lafortune over 8 years ago

lib/prime: Fix primality of some large integers [#13492].

  • lib/prime.rb: Use accurate sqrt to insure all factors are tested.
    Patch by Marcus Stollsteimer.

  • test/test_prime.rb: Adapt test for timeout

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e