Skip to content

[FEATURE] Adding Left-Truncatable Prime #839

@farishaskovic

Description

@farishaskovic

Detailed Description

I would like to add an algorithm for checking if the number is left-truncable prime. A Left-truncatable prime is a prime which in a given base (say 10) does not contain 0 and which remains prime when the leading (“left”) digit is successively removed. For example, 317 is left-truncatable prime since 317, 17 and 7 are all prime. There are total 4260 left-truncatable primes.

The task is to check whether the given number (N >0) is left-truncatable prime or not.

Context

This feature can be useful for a lot of computer science students.

Possible Implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststaleAuthor has not responded to the comments for over 2 weeks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions