Let $N$ be a natural number. If the sum of the digits(ciphers) of $N$ is $2012$ show that $N$ is prime.
Tell me more
×
Mathematics Stack Exchange is a question and answer site for
people studying math at any level and professionals in related fields. It's 100% free, no registration required.
|
|
Since 10N has the same sum of digits as N, knowing the sum of digits does not imply primality for any such sum base ten (or for that matter, any radix > 1). In base ten the sum of digits does determine the residue mod 9, a well-known consequence often called "casting out nines". |
|||
|
|