Live data from Hacker News

Is This Prime?

isthisprime.com

71–80 of 139 posts

Re: Is This Prime?

#71
post #25

They've included 1 as not a prime. That was a fairly recent decision.

One is not a prime number. If you allow one to be a prime number, then you can no longer say that each natural number has a unique prime factorization. This makes the concept of prime numbers much more useful when one is excluded.

Basically it's excluded because many theorems become cumbersome to state.

Endlessly saying "primes other than 1" gets kind of tedious.

Re: Is This Prime?

#72

Here is a "theorem" I learned: every number up to 100 which looks prime, is prime, except 91. Does anyone recall its name?

Really like that! Presumably this is because most people's sense of what feels prime is: odd numbers which don't appear in the times tables; and only 39, 51, 57, 69, 87, 91 and 93 are red herrings in that regard, all of which bar 91 are divisible by 3, which people also have a good sense of, not least by using the add the digits rule.

Re: Is This Prime?

#73
I've started, if I wake up in the middle of the night, thinking of a 'prime-looking' number, then trying to factor it. Sometimes I discover interesting connections, other times I fall back asleep - either is a win.

Re: Is This Prime?

#74
post #31
post #25

Earlier quoted context omitted.

One is not a prime number. If you allow one to be a prime number, then you can no longer say that each natural number has a unique prime factorization. This makes the concept of prime numbers much more useful when one is excluded.

> If you allow one to be a prime number, then you can no longer say that each natural number has a unique prime factorization. I don't dispute that, by definition, 1 is not prime, but I don't see how this statement would follow if we considered it prime. Edit: it seems more like it would be that every factorization would implicitly have 1^n tacked onto it, and while that isn't exactly useful, it doesn't break the gam…

That breaks the uniqueness of the prime factorization. Mathematicians love uniqueness, almost as much as existence.

Re: Is This Prime?

#76

Is there a reason we're obsessed with primes beyond aesthetics? Why does this set of numbers garner all the headlines as opposed to some other arbitrary integer sequence like the Recamán numbers [0] ? If tomorrow someone discovered a closed-form equation for the nth prime, how would mathematics/the world change? [0] https://en.wikipedia.org/wiki/Recamán%27s_sequence

Beyond cryptography, there is the fundamental theorem of arithmetic, which plays an important role in encoding Gödel numbers in Gödel's theorem.

In algebra, the integers mod p are a finite field (addition, subtraction, multiplication, and division are defined) if and only if p is prime.

Primality in algebra also exists in a more general form with prime ideals. An ideal is the set of elements of a commutative ring in which any element of the ideal multiplied by any element of the ring is still in the ideal; there is a sort of 'closed' property. Even numbers form an ideal because if you multiply any number by an even number, you get an even number. For a prime ideal, if ab is in the ideal, a is in the ideal or b is (similar to how if a prime number divides ab, it divides a or b).

They have a number of interesting properties. For example, for a ring homomorphism (a function from one ring to another that preserves relationships between elements of the two rings), the pre-image of a prime ideal is also a prime ideal.

Re: Is This Prime?

#77
post #74
post #31

Earlier quoted context omitted.

> If you allow one to be a prime number, then you can no longer say that each natural number has a unique prime factorization. I don't dispute that, by definition, 1 is not prime, but I don't see how this statement would follow if we considered it prime. Edit: it seems more like it would be that every factorization would implicitly have 1^n tacked onto it, and while that isn't exactly useful, it doesn't break the gam…

That breaks the uniqueness of the prime factorization. Mathematicians love uniqueness, almost as much as existence.

Could you please demonstrate an example of such a break? I think if we really look at it, we might see that it's really just convention and semantics. I don't want to seem like I'm cherry picking by providing my own example.
Post reply on HN