Bug #7395

Negative numbers can't be primes by definition

Added by Zachary Scott over 1 year ago. Updated 3 months ago.

[ruby-core:49558]
Status:Assigned
Priority:Normal
Assignee:Yuki Sonoda
Category:lib
Target version:current: 2.2.0
ruby -v:2.0.0 Backport:

Description

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

prime_refute_negative_numbers.patch Magnifier (1.16 KB) Zachary Scott, 11/19/2012 12:40 PM

History

#1 Updated by Usaku NAKAMURA over 1 year ago

  • Status changed from Open to Assigned

#2 Updated by Koichi Sasada about 1 year ago

  • Subject changed from Negative numbers can't be primes by definition to Negative numbers can't be primes by definition
  • Target version changed from 2.0.0 to 2.1.0

#3 Updated by Hiroshi SHIBATA 3 months ago

  • Target version changed from 2.1.0 to current: 2.2.0

Also available in: Atom PDF