{"id":18626153,"url":"https://github.com/specterops/bhe-code-exercise","last_synced_at":"2026-02-15T22:06:35.968Z","repository":{"id":234537284,"uuid":"789063418","full_name":"SpecterOps/bhe-code-exercise","owner":"SpecterOps","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-24T16:06:50.000Z","size":263,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-09-24T18:09:52.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpecterOps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-04-19T16:28:33.000Z","updated_at":"2025-09-24T16:05:40.000Z","dependencies_parsed_at":"2024-11-07T04:39:39.175Z","dependency_job_id":null,"html_url":"https://github.com/SpecterOps/bhe-code-exercise","commit_stats":null,"previous_names":["specterops/bhe-code-exercise"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/SpecterOps/bhe-code-exercise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpecterOps%2Fbhe-code-exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpecterOps%2Fbhe-code-exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpecterOps%2Fbhe-code-exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpecterOps%2Fbhe-code-exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpecterOps","download_url":"https://codeload.github.com/SpecterOps/bhe-code-exercise/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpecterOps%2Fbhe-code-exercise/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29490360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-07T04:37:04.771Z","updated_at":"2026-02-15T22:06:35.963Z","avatar_url":"https://github.com/SpecterOps.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BHE Software Engineer Coding Exercise\n\n## The Sieve of Eratosthenes\n\nPrime numbers have many modern day applications and a long history in\nmathematics. Utilizing your own resources, research the sieve of Eratosthenes,\nan algorithm for generating prime numbers. Based on your research, implement\nan API that allows the caller to retrieve the Nth prime number.\nSome stub code and a test suite have been provided as a convenience. However,\nyou are encouraged to deviate from Eratosthenes's algorithm, modify the\nexisting functions/methods, or anything else that might showcase your ability;\nprovided the following requirements are satisfied.\n\nYou must author your work in Go, JavaScript/TypeScript, Python, or C# - all\nother language submissions will be rejected. Stub code has been provided, so\nplease choose from one of the provided language stubs that is most\nrelevant to your skill set and the position you are applying for.\n\n### Requirements\n\n- Click on the \"Use this template\" button to create a new GitHub repository, in which you may implement your solution\n- The library package provides an API for retrieving the Nth prime number using 0-based indexing where the 0th prime number is 2\n- Interviewers must be able to execute a suite of tests\n  - Go: `go test ./...`\n    - Use `go test ./... -fuzz=.` to enable fuzz tests (random, potentially invalid inputs)\n  - C#: `dotnet test Sieve.Tests`\n  - Javascript: `npm run test`\n  - Python: `python -m unittest test_sieve.py`\n- Your solution is committed to your project's `main` branch, no uncommitted changes or untracked files please\n- Submit the link to your public repo for review\n\n### Considerations\n\nYou may add more tests or restructure existing tests, but you may NOT change or remove\nthe existing test outcomes; eg- f(0)=2, f(19)=71, f(99)=541, ..., f(10000000)=179424691\n\nDuring the technical interview, your submission will be discussed, and you will be evaluated in the following areas:\n\n- Technical ability\n- Communication skills\n- Work habits and complementary skills\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecterops%2Fbhe-code-exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspecterops%2Fbhe-code-exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecterops%2Fbhe-code-exercise/lists"}