I noticed a strange phenomenon while examining prime numbers. Here it is:
We'll say num = number
If num's sum of digits is 4 and num is not even, num is prime.
Can somebody explain to me why this happens?
Here is a Node.js program for proof: http://pastebin.com/a35uXxKk
EDIT: Output:
13 (Is prime as well) 31 (Is prime as well) 103 (Is prime as well) 211 (Is prime as well) 301 (If you see this, something is wrong) 1003 (If you see this, something is wrong) 1021 (Is prime as well) 1201 (Is prime as well) 2011 (Is prime as well) 3001 (Is prime as well)
This means numbers with (If you see this, something is wrong) are exceptions. Can people help me make a rule for ruling out these exceptions?
EDIT 2:
Most of the exceptions are divisible by 11. Taking out those seemed to eliminate most exceptions.
EDIT 3:
It seems if a number got ruled out by my previous revisions, any of the digit rearrangements will not work either.
Comment why if you downvote so I can improve