How many of 10-digit integers can be formed by using all the digits 0 to 9 (inclusive) such that it is a prime number?
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.
Good job identifying divisibility rule as the key. Bonus question: How many 45-digit integers can be formed using one 1, two 2's, three 3's, and so on till nine 9's such that it is a prime number?
Really nice problem.Cheers!
[Response to Challenge Master Note]
@Calvin Lin , there's a typo in the note. It should be " 4 5 -digit integers".
The total digit sum is an invariant property, i.e, it doesn't change on permutation of the digits of the number. The invariant digit sum for the stated 4 5 -digit integers is given by,
i = 1 ∑ 9 j = 1 ∑ i i = i = 1 ∑ 9 i 2 = 6 9 × 1 0 × 1 9 = 2 8 5
By the divisibility rule of 3 , we get that 2 8 5 ≡ 0 ( m o d 3 ) . As such, there can be no such integer which is prime.
Log in to reply
K fixed. Thanks!
Log in to reply
You know, you sounded a bit like Sreejato (a.k.a. "the bunny") in that reply! :P
Problem Loading...
Note Loading...
Set Loading...
Each of the Numbers Formed using digits From 0-9 Will Be Divisible By 3 Because, 0+1+2+3+4+5+6+7+8+9=45 which is Divisible by 3.
Hence, The answer is 0.
Cheers! :D