Digit sum of a prime

How many prime numbers are there such that the sum of their digits is 999?

Also try this harder problem.
Infinitely Many 0 1 999 2

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Dhruv Bhasin
May 30, 2015

We will use the divisibilty test of 3 which states that if the sum of a number is divisible by 3 then the number is also divible by 3.

Note that 999 999 is divisible, therefore, so is every number whose sum of digits is 999 999 . This means that no number whose sum of digits is 999 999 is a prime, hence the answer is 0.

Can u prove the divisibility test of 3?

Maninder Dhanauta - 6 years ago

Log in to reply

This wil be helpful to you.

Dhruv Bhasin - 6 years ago

Yes, the proof is quite easy using Congruences. Just note that 10 1 ( m o d 3 ) 10 \equiv 1 \pmod{3} , and then the proof is as simple as anything

Raushan Sharma - 5 years, 8 months ago

very good explanation....

Debmalya Mitra - 6 years ago

Log in to reply

Thanks a lot. :)

Dhruv Bhasin - 6 years ago

997+2=999 Man you made my points go down

Amitya Sharma - 6 years ago

Log in to reply

Umm...Sorry, but I dont get you?

Dhruv Bhasin - 6 years ago

I got what you meant.

Maybe my reply to Mayur Ade would be helpful to you.

Dhruv Bhasin - 6 years ago

Log in to reply

Oh I read question in sort of a hurry now I get It Nice question man and sorry for accusing you

Amitya Sharma - 6 years ago

Log in to reply

@Amitya Sharma No worries friend. Glad you like it. :)

Dhruv Bhasin - 6 years ago

Is 997 a prime number ?..

Mayur Ade - 6 years ago

Log in to reply

It indeed is and i believe you are thinking that 997 + 2 = 999 997+2=999 . (And now I also get what Amritya wanted to say.)

But the problem does not demand the sum of different prime numbers but the digut sum of a single prime number. For eg- digit sum of 997 997 is 9 + 9 + 7 = 25 9+9+7=25 .

Hope that helps.:)

Dhruv Bhasin - 6 years ago

Oh my god, it was so simple and I was creating a program that will count the numbers of prime numbers... I am fool.

Uttam Manher - 2 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...