Let be a function in the natural numbers, such that gives the binary representation of in base 10. For example, , because 5 is represented as 101 in binary.
A number is called good if and are both prime numbers. For example, 5 is good, because 5 and 101 are prime numbers. 7 is not good, since is not prime.
The smallest good number is 3. The second smallest good number is 5. Find the smallest good 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.
In JavaScript:
typing nthGoodNumber(19) on the Browser's Console gives the answer 4 4 3