Project

General

Profile

Actions

Bug #7395

closed

Negative numbers can't be primes by definition

Added by zzak (zzak _) about 12 years ago. Updated over 10 years ago.

Status:
Closed
Target version:
ruby -v:
2.0.0
Backport:
[ruby-core:49558]

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


Files

prime_refute_negative_numbers.patch (1.16 KB) prime_refute_negative_numbers.patch zzak (zzak _), 11/19/2012 12:40 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0