Truncatable prime number generators
Project description
Truncatable primes
A Python library that generates that generates sequences of truncatable prime numbers and derivatives of the sequences in the form of a package that can be installed and imported.
A truncatable prime is still prime when number is truncated. For example, 317 is a left truncatable prime because 17 and 7 are prime. It is also a right truncatable prime because 31 and 3 are prime.
The intention of this library is to provide code that is reasonably efficient and readable. It is not difficult to track down cryptic one-liner code that produces identical results.
Getting Started
Python 3 is assumed.
Installing
Simply clone the repository.
git clone https://github.com/harry-zuzan/trprimes.git
pip install trprimes
And have fun!
from trprimes import truncp
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.