In which pigs fly, hell freezes over, and Malleus expresses an interest in math

I am not a math person. I find it very hard to pay attention to something that abstract. If I had to guess, I’d say my math skills are around an eight grade level (there’s a reason, but it’s too long to get into now). I normally don’t give a fig whether X equals Z squared to the tenth power or not.

That being said, I was lying awake the night before my brother’s eleventh birthday, thinking about goofing off at cake time. I thought maybe I’d say the “Are you one, are you two, are you three, etc” in prime numbers or Fibonacci sequence. (Don’t ask me why I know Fibonacci numbers, but not calculus. Just don’t).
As I was going through the prime numbers in my head, I noticed they all (except 2) ended in 1, 3, 7, or 9. Wow, this calculating primes was easier than I thought.
Of course, not every -1, -3, -7, or -9 is a prime. I realized that the ones that weren’t primes had digits that added up to a number divisible by three. A mystery here! Why three?
Then I found an exception to the exception. If one of the digits being added up is a one, than it’s still a prime number. So 51 is a prime, but 33 is not.

Why are 3 and 1 so special? Is there an explanation that could be understood by a mathematical illiterate with a short attention span like me?

is this a joke? All numbers with digit sum divisible by 3 are divisible by 3, including 51 = 17 * 3

5 itself is prime.

51 is not.

No other ending-in-5 numbers are prime because they are all divisible by 5.
No even number other than 2 is prime.

So we’re left with numbers ending in 1, 3, 7, or 9 as possible primes.

Tolja I’m stupid.

1 isn’t special. Your rule about numbers ending in 1 doesn’t work. 51 isn’t prime. (3*17=51)

3 is special because 9 is divisible by 3. 9 is special because we use a base 10 system, 9 is right before you roll over into a new digit.

Here’s why the digits of a multiple of 3 always add up to a multiple of 3. We’ll stick with 2 digit numbers, but the logic works no matter how big the number gets.

Take any 2 digit number and call the first digit a and the second digit b. So if you’re looking at 54, a=5 and b=4. Now, another way you could write this is that a is the 10s digit, so write it as 10a + b. 10a can be rewritten as 9a + a. So the whole thing can be written as 9a + (a + b).

Those parentheses are just there for emphasis, by the way.

Now, 9*a is obviously divisible by 9, and thus is divisible by 3. So your number ab is divisible by 3 if and only if (a+b) is divisible by 3.

The 10a = 9a + a step is what makes 9 special, and like I said, it works because 9 is the number you get when you step down a digit. If we were working in base 8, then 7 would be the special number and 3 wouldn’t be anything.

I’m not going to add much that’s new to the conversation, but I’ll sum up what a few have said. If you’re looking at the trailing digits, any number that ends with an even digit is a multiple of 2. So any numbers with the trailing digit of 2, 4, 6, 8 and 0 are not prime, except for the number 2. 5 is prime, but multiples of 5 all end in 5 or in 0, so 5 is added to the above list. Four digits remain from the original ten, which are 1, 3, 7 and 9 as you observed. Not all numbers ending in those digits are prime, but if a number is prime (and at least two digits long) then it must end with a digit from that list, by elimination. Of all numbers that end in 1, 3, 7 or 9 approximately a third will be a multiple of 3 because one out of any three numbers chosen at random is divisible by 3. This means that you’ll notice more of the numbers that were candidates for prime only because of their trailing digit being a 1, 3, 7 or 9 are eliminated for being a multiple of 3 than for any other reason. You correctly identified that, as well. After 3 your second most likely cause for elimination from that list would be multiples of 7, which are harder to identify offhand in addition to being much less common (the first would be 49). After 7, the next most common would be multiples of 11, but those aren’t too frequent, and the first would be 99.

That would have been eliminated by the “divisible by three” rule. The first number eliminated by the “multiple of 11” rule would be 121.

D’oh. You’re absolutely right, and I feel silly for the mistake. I think that the point stands, though.

We’re all informally implementing the Sieve of Eratosthenes. See Sieve of Eratosthenes - Wikipedia for a graphic illustration of how/why it works.

Thanks. Like I said, I missed out on an entire high school math curriculum, so I don’t know what I’m talking about.