{"id":19892873,"url":"https://github.com/red-rapious/euler-rust","last_synced_at":"2025-03-01T05:26:03.446Z","repository":{"id":177685669,"uuid":"660724537","full_name":"Red-Rapious/Euler-Rust","owner":"Red-Rapious","description":"My Project Euler track in Rust.","archived":false,"fork":false,"pushed_at":"2023-08-02T12:22:50.000Z","size":118,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T19:44:27.862Z","etag":null,"topics":["project-euler","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Red-Rapious.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":"2023-06-30T17:23:16.000Z","updated_at":"2023-07-05T11:29:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f371a52-a130-4cc9-81bb-cb03e636a93a","html_url":"https://github.com/Red-Rapious/Euler-Rust","commit_stats":null,"previous_names":["red-rapious/euler-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Red-Rapious%2FEuler-Rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Red-Rapious%2FEuler-Rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Red-Rapious%2FEuler-Rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Red-Rapious%2FEuler-Rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Red-Rapious","download_url":"https://codeload.github.com/Red-Rapious/Euler-Rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241321502,"owners_count":19943950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["project-euler","rust"],"created_at":"2024-11-12T18:25:56.853Z","updated_at":"2025-03-01T05:26:03.424Z","avatar_url":"https://github.com/Red-Rapious.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Euler-Rust\nMy [Project Euler](https://projecteuler.net/) track in Rust. Every solution is commented, and some problems feature multiple solutions.\n\n## Compiling and Running\n### Default `cargo run`\nThis project uses `Cargo`. With `rust` installed on your machine, you can execute my code with:\n```console\n$ cargo run\n```\n\nThe main program then asks for a Problem number to run, which you can enter in the command line:\n```console\n$ cargo run\n    Compiling ...\n     Finished ...\n      Running ...\nProblem number:\n1\n```\n\n### Environment Argument\nAlternatively, you can directly pass the problem number as an environment argument:\n```console\n$ cargo run 1\n    Compiling ...\n     Finished ...\n      Running ...\nProblem 1 solution: ...\n```\n\n### Unit Tests\nFinally, I have configured unit tests for each problem. You can run them with:\n```console\n$ cargo test\n```\nor to run a specific test:\n```console\n$ cargo test test_problem1\n```\n\nSome problems have multiple solutions, and the unit tests are configured to run all of them.\n```console\n$ cargo test test_problem1_v2\n```\n\nSome solutions, such as the one for [Problem 23](src/problem23.rs), take a few more seconds to run than the others. Corresponding tests are ignored by default, but you can run them with:\n```console\n$ cargo test -- --ignored\n```\nor to run all tests, ignored or not:\n```console\n$ cargo test -- --include-ignored\n```\n\n## Problems solved\n- [Problem 1:](src/problem1.rs) Multiples of 3 or 5\n- [Problem 2:](src/problem2.rs) Even Fibonacci Numbers\n- [Problem 3:](src/problem3.rs) Largest Prime Factor\n- [Problem 4:](src/problem4.rs) Largest Palindrome Product\n- [Problem 5:](src/problem5.rs) Smallest Multiple\n- [Problem 6:](src/problem6.rs) Sum Square Difference \n- [Problem 7:](src/problem7.rs) 10001st Prime \n- [Problem 8:](src/problem8.rs) Largest Product in a Series\n- [Problem 9:](src/problem9.rs) Special Pythagorean Triplet\n- [Problem 10:](src/problem10.rs) Summation of Primes\n- [Problem 11:](src/problem11.rs) Largest Product in a Grid\n- [Problem 12:](src/problem12.rs) Highly Divisible Triangular Number\n- [Problem 13:](src/problem13.rs) Large Sum\n- [Problem 14:](src/problem14.rs) Longest Collatz Sequence\n- [Problem 15:](src/problem15.rs) Lattice Paths\n- [Problem 16:](src/problem15.rs) Power Digit Sum\n- [Problem 17:](src/problem17.rs) Number Letter Counts\n- [Problem 18:](src/problem18.rs) Maximum Path Sum I\n- [Problem 19:](src/problem19.rs) Counting Sundays\n- [Problem 20:](src/problem20.rs) Factorial Digit Sum\n- [Problem 21:](src/problem21.rs) Amicable Numbers\n- [Problem 22:](src/problem22.rs) Names Scores\n- [Problem 23:](src/problem23.rs) Non-Abundant Sums\n- [Problem 24:](src/problem24.rs) Lexicographic Permutations\n- [Problem 25:](src/problem25.rs) 1000-digit Fibonacci Number\n- [Problem 26:](src/problem26.rs) Reciprocal Cycles\n- [Problem 27:](src/problem27.rs) Quadratic Primes\n- [Problem 28:](src/problem28.rs) Number Spiral Diagonals\n- [Problem 29:](src/problem29.rs) Distinct Powers\n- [Problem 30:](src/problem30.rs) Digit Fifth Powers\n\n## License\nThis work is licensed under the [CC-BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) license. Original content is the property of the [Project Euler website](https://projecteuler.net/copyright) and also licensed under **CC-BY-NC-SA 4.0**.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred-rapious%2Feuler-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fred-rapious%2Feuler-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred-rapious%2Feuler-rust/lists"}