Negative numbers can't be primes by definition. #187

wants to merge 1 commit into

5 participants


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

Ruby Programming Language member

/cc @yugui


@ikataitsev there is an interesting note about negative prime numbers -
So current code makes sense actually.


Prime numbers can't be negative but prime elements can. There are complex numbers ;)

Ruby Programming Language member

Closing this, please refer to Bug #7395 in redmine

@zzak zzak closed this Nov 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment