An open API service indexing awesome lists of open source software.

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++

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`