{"id":18898340,"url":"https://github.com/brainstone/truncateableprimes","last_synced_at":"2026-05-03T07:47:17.267Z","repository":{"id":69186556,"uuid":"142704444","full_name":"BrainStone/TruncateablePrimes","owner":"BrainStone","description":"A C++ program that calculates left and right truncatable primes","archived":false,"fork":false,"pushed_at":"2018-08-24T19:59:12.000Z","size":254,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T19:25:38.707Z","etag":null,"topics":["cpp","cpp14","gradle","mathematical-modelling","mathematics","prime-numbers"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BrainStone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-28T19:26:41.000Z","updated_at":"2018-08-24T19:59:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"37fd177a-6f41-45f5-a7b8-8387549710f0","html_url":"https://github.com/BrainStone/TruncateablePrimes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BrainStone/TruncateablePrimes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrainStone%2FTruncateablePrimes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrainStone%2FTruncateablePrimes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrainStone%2FTruncateablePrimes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrainStone%2FTruncateablePrimes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrainStone","download_url":"https://codeload.github.com/BrainStone/TruncateablePrimes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrainStone%2FTruncateablePrimes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32562118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","cpp14","gradle","mathematical-modelling","mathematics","prime-numbers"],"created_at":"2024-11-08T08:42:02.882Z","updated_at":"2026-05-03T07:47:17.250Z","avatar_url":"https://github.com/BrainStone.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TruncateablePrimes [![Build Status](https://travis-ci.org/BrainStone/TruncateablePrimes.svg?branch=master)](https://travis-ci.org/BrainStone/TruncateablePrimes)\n\nTruncateablePrimes is a project designed to calculate left and right truncatable primes in C++.\n\nInspired by https://www.youtube.com/watch?v=azL5ehbw_24\n\nContributions are always welcome!\n\n## Cloning\n\nSince this repo is recursive, you need to clone it recursively\n\n    $ git clone --recursive https://github.com/BrainStone/TruncateablePrimes.git\n\nIf you forgot to do that, you can download the submodules later by running\n\n    $ git submodule update --init --recursive\n\n### Hooks\n\nThis repo also provides a few simple hooks to make working with submodules easier. While it is not necessary to do this step, it is recommended.\n\n    $ cp -va .hooks/* .git/hooks/\n\n## Building\n\nThis project uses gradle for building. The nice thing about gradle is that you only need to have Java (and a C++ compiler of your choice) installed.  \nBuilding is super straight forward:\n\n    $ ./gradlew build\n\nThis will build the project and all its dependencies.\n\n### Compiler version\n\nFor this project to build properly, you need an up to date version of your compiler:\n\n| Compiler | Required Version |\n| --- | --- |\n| Clang | 3.4+ |\n| GCC | 5+ (4.9 might work) |\n| Visual Studio | 2015+ |\n\n*(If you find that it compiles on different versions than stated here, open an issue stating on which compiler version it compiled successfully. (Including the\ntests!))*\n\n### MPIR\n\nThis program depends on the MPIR library (libmpir) and its C++ Wrapper (libmpirxx). Due to the complexity I cannot include MPIR here directly.\n\nYou sadly need to build it yourself. Downloads can be found here: http://mpir.org/downloads.html  \nBe sure to use the version 3.0.0. Building instructions can be found in the documentation.\n\nIn general you have three options:\n\n- **Recommended *(for Unix)***: Run the provided `./build-mpir.sh` script.  \n  For most cases the invocation `./build-mpir.sh -t` is the best choice.  \n  Run `./build-mpir.sh -h` to get an overview and explanation of all flags.\n- Install it system wide. The library files should be in `/usr/local/lib/` **(Unix only)**\n- Provide the files yourself:\n  - Put the `mpir.h` and `mpirxx.h` in the `lib/mpir/include` dir\n  - Put the library files in the `lib/mpir/lib` dir *(`libmpir.a` and `libmpirxx.a` on Linux and OSX, `mpir.lib` and `mpirxx.lib` on Windows)*\n\n### Documentation\n\nThis project comes with a Doxyfile. You can either generate the documentation manually by using Doxygen from the command line, or by running this gradle task:\n\n    $ ./gradlew doc\n\n## License\n\nThis is project is licensed under the GPLv3 license.\n\nProjects included in this project through submodules or other means are licensed under their respective licenses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainstone%2Ftruncateableprimes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrainstone%2Ftruncateableprimes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainstone%2Ftruncateableprimes/lists"}