{"id":21866906,"url":"https://github.com/rootmos/primes","last_synced_at":"2025-03-21T21:24:55.346Z","repository":{"id":82434120,"uuid":"21115095","full_name":"rootmos/primes","owner":"rootmos","description":"Personal project for playing around with C++11, STL and what-not. Experts be warned of ugly code!","archived":false,"fork":false,"pushed_at":"2014-08-03T10:02:05.000Z","size":3580,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T16:12:58.440Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/rootmos.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-23T05:36:58.000Z","updated_at":"2014-07-27T14:40:00.000Z","dependencies_parsed_at":"2023-02-28T11:01:09.545Z","dependency_job_id":null,"html_url":"https://github.com/rootmos/primes","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fprimes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fprimes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fprimes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fprimes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootmos","download_url":"https://codeload.github.com/rootmos/primes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244870835,"owners_count":20523938,"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":[],"created_at":"2024-11-28T05:07:53.519Z","updated_at":"2025-03-21T21:24:55.325Z","avatar_url":"https://github.com/rootmos.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nPrimes!\n=======\n\n\n\n\nTo compile:\n-----------\n\n### Fetch the [cppformat](https://github.com/cppformat/cppformat) library.\n```\ngit submodule update --init\n```\n\n### In debug mode\n\n```\nmkdir build\ncd build\ncmake .. -DCMAKE_BUILD_TYPE=Debug\nmake\n```\n\n### In release mode\n\n```\nmkdir build\ncd build\ncmake .. -DCMAKE_BUILD_TYPE=Release\nmake\n```\n\nTo run tests:\n-------------\n\nUnzip the test file:\n```\ngunzip 2000000.txt.gz\n```\n\nMount a tmpfs/ramfs for extra speed:\n```\nmkdir tmp\nsudo mount -t tmpfs tmpfs tmp\n```\n\nRun the tests with the `run` command. The parameters are as follows:\n\n 1. Number of repetitions\n 2. Range of sieving threads, formated as \"1 7\" meaning that we try from 1 to 7 threads.\n 3. Range of threads converting uints to strings in the same format as above.\n 4. Range of chunks for the threads specified as above in 100000:s.\n 5. The binary to try\n\nFor example: \n```\n./run 10 \"1 7\" \"1 7\" \"1 10\" src/primes\n```\n\nThen the test output will be in the newly created `tests` folder.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootmos%2Fprimes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootmos%2Fprimes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootmos%2Fprimes/lists"}