Prime-Worthy Primes

Let a subcat of a number be defined for positive integers such that for any number of n n digits,

  • There are n 1 n - 1 subcats.

  • The first subcat is the units digit.

  • The second subcat is the number formed by the tens and units digits combined, and so on.

  • Any number isn't its own subcat.

Thus, say, for a number 5347 5347 , there are 3 3 subcats, namely: 7 7 , 47 47 , and 347 347 .

Now, we call an n n -digit number to be Prime-Worthy if all subcats X k X_k of X X of length k < n k<n are nonzero and prime, regardless of whether or not X X itself is prime or not. It is mandatory though for subcats to exist for it to be considered Prime-Worthy.

How many Prime-Worthy primes are there less than 10000 10000 ?


The answer is 204.

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

Efren Medallo
Jun 18, 2017

Here is the code I implemented to determine the number of cases of Prime-Worthy primes under 10000 10000 . This is a rather brute-force approach, so I welcome solutions that are done manually otherwise :)

1 pending report

Vote up reports you agree with

×

Problem Loading...

Note Loading...

Set Loading...