News for hackers. Stuff that matters.
Re:Do we have negative prime numbers? by pmiller2 on Saturday January 16, 2021 @11:36AM (#25803315)
Not really. Unique factorization is defined up to units, so, factors of +-1 don't matter. 1 is not a prime because it's a unit, and the ideal it generates is trivial; it's the entire ring, so, for Z, it's all of Z.
Re:Do we have negative prime numbers? by FartyMcFarter on Saturday January 16, 2021 @11:43AM (#25803365)
The fundamental theorem of arithmetic doesn't say anything about units though:

https://en.wikipedia.org/wiki/Fundamental_theorem_of_arithme...

> every integer greater than 1 either is a prime number itself or can be represented as the product of prime numbers and that, moreover, this representation is unique, up to (except for) the order of the factors.

Re:Do we have negative prime numbers? by ogogmad on Saturday January 16, 2021 @11:44AM (#25803372)
Look up the definition of a Unique Factorisation Domain and a prime element of a ring. The theorem that the integers form a UFD necessarily takes into account negative primes.

[Edit] Here: https://en.wikipedia.org/wiki/Unique_factorization_domain