[ruby-cvs:53024] ayumin:r45878 (trunk): * lib/prime.rb (Prime#prime?): negative numbers can't be primes

ayumin at ruby-lang.org ayumin at ruby-lang.org
Fri May 9 03:22:30 JST 2014


ayumin	2014-05-09 03:22:29 +0900 (Fri, 09 May 2014)

  New Revision: 45878

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45878

  Log:
    * lib/prime.rb (Prime#prime?): negative numbers can't be primes
      by definition. reported by Ivan Kataitsev. [Bug #7395]
    * test/test_prime.rb: add test.

  Modified files:
    trunk/ChangeLog
    trunk/lib/prime.rb
    trunk/test/test_prime.rb


More information about the ruby-cvs mailing list