The number 3797 is considered prime. But you can also take away a number from either side of the number and still be left with a prime number. 379, 37, 3 and 797, 97, and 7 are all prime. Starting with numbers greater than 9 can you find other truncatable primes?
Comments:
Anonymous - 9 years, 11 months ago
23 37 53 73 313 317 373 797 3137 3797 739397
reply permalink
David - 9 years ago
Some Python to get truncatable primes. Too lazy today to make the script into a function. I threw the problem at memory instead of time. Each iteration is guaranteed to be truncatable by concatenating one digit primes to prime numbers and and keeping prime results.
reply permalink
David - 8 years, 11 months ago
So I guess I have Left Truncatable primes, but technically not all of them. My class of truncatable primes does not seem to appear in the Wikipedia article.
https://en.wikipedia.org/wiki/Truncatable_prime Also interesting is the property that this eventually runs out of additional lengths due to the lack of prime numbers comprised of only prime digits with length 5.
reply permalink