Live data from Hacker News

Is This Prime?

isthisprime.com

31–40 of 139 posts

Re: Is This Prime?

#31
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.

> 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 game.

Re: Is This Prime?

#35
post #20

When I was a fifth grader in China, we were required to memorize all prime numbers below 100. Curious if that is common in other countries?

I don't think so. Remember any other interesting numbers list you needed to memorize?

I learned all the integers.

Re: Is This Prime?

#38

When I was a fifth grader in China, we were required to memorize all prime numbers below 100. Curious if that is common in other countries?

I don't think that was a thing in France (at least where I went to school) but we often used them indirectly to simplify fractions, so all in all maybe we had to know all primes under 25 I think?

Re: Is This Prime?

#39

This reminds me of my favorite in-person magic trick to do. First, memorize all the two-digit primes. 25 numbers isn't that hard to memorize. Then, tell someone "Oh, I can instantly tell whether a number is prime or not. Give me a number, I'll tell you whether it's prime." If they tell you a number between 1 and 100, use your memorized list. Otherwise, it's a game of cold reading; if they just generated a random stri…

After 8 attempts, I ran into "Game Over". Was just thinking about the satisfaction for the author of this site. There is just enormous fun in saying - Game Over - to another human :)

Re: Is This Prime?

#40
post #37

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

I agree. And I would add 51 to that.

51's an easy one because 5+1=6, and 6 is divisible by 3, so it must be divisible by 3.

It's easy to try 'divisible by 5' (ends in 5 or 0) and 'divisible by 3' (sum of digits is divisible by 3). 91 isn't found as prime by those two tests, so it needs the extra exceptional rule.

Post reply on HN