https://github.com/arsenarsen/prime_machine
Multithreaded prime finder written in C++
https://github.com/arsenarsen/prime_machine
concurrency cpp cpp11 math number prime
Last synced: about 1 month ago
JSON representation
Multithreaded prime finder written in C++
- Host: GitHub
- URL: https://github.com/arsenarsen/prime_machine
- Owner: ArsenArsen
- Created: 2017-10-09T23:27:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-28T00:19:40.000Z (almost 8 years ago)
- Last Synced: 2026-02-01T07:11:13.580Z (5 months ago)
- Topics: concurrency, cpp, cpp11, math, number, prime
- Language: C++
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prime_machine
Multithreaded prime finder written in C++
## Compilation
### Dependencies
* pthread
* c++11
### Compilation
`make`, to change the compiler use `make CXX=compiler`, `make OUTPUT=whatever` to change the output file, and to change the arguments use `make LIBS=whatever`. They can be combined. Default values:
```makefile
CXX= g++
LIBS= -pthread -std=c++11
OUTPUT= primer
```
## Usage
`./primer [limit]`
## Output format
`\n`