is the largest -digit number and is the smallest -digit number that satisfies the following conditions ---
Each digit of the numbers is a prime digit
Each successive pairs of digits forms a -digit number that is NOT a prime number
Each of the prime digits must appear at least once in each of the -digit numbers
Find
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.
2 , 3 , 5 , 7 are the prime digits to satisfy criterion One.
The pairs that satisfy criterion Two are 2 2 , 2 5 , 2 7 , 3 2 , 3 3 , 3 5 , 5 2 , 5 5 , 5 7 , 7 2 , 7 5 , 7 7
3 3 is the only pair that has 3 as the second digit. So the number must start with 3 to satisfy criterion Three.
Rest is simply choosing from the above pairs to make up 3 5 7 7 2 as the largest and 3 2 2 5 7 as the smallest numbers.
Difference is 3 5 1 5