[ruby-core:62710] [ruby-trunk - Bug #7395] [Closed] Negative numbers can't be primes by definition

From: ayumu.aizawa@...
Date: 2014-05-23 15:32:30 UTC
List: ruby-core #62710
Issue #7395 has been updated by Ayumu AIZAWA.

Status changed from Assigned to Closed

Applied in changeset r46061.

----------
add information of incompatibility about Prime.prime? [Bug #7395]

----------------------------------------
Bug #7395: Negative numbers can't be primes by definition
https://bugs.ruby-lang.org/issues/7395#change-46834

* Author: Zachary Scott
* Status: Closed
* Priority: Normal
* Assignee: Yuki Sonoda
* Category: lib
* Target version: current: 2.2.0
* ruby -v: 2.0.0
* Backport: 
----------------------------------------
from github:
https://github.com/ruby/ruby/pull/187

By definition, a prime number can be a positive integer greater than 1.

http://mathworld.wolfram.com/PrimeNumber.html

---Files--------------------------------
prime_refute_negative_numbers.patch (1.16 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next