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

https://github.com/yousefvand/mtprimer

Multi-thread prime calculator
https://github.com/yousefvand/mtprimer

cpp multithreading prime-numbers

Last synced: over 1 year ago
JSON representation

Multi-thread prime calculator

Awesome Lists containing this project

README

          

# Primer

Multithread prime calculator

## Build

Release mode:

```bash
g++ -std=c++11 -pthread -Wall mtprimer.cpp -o mtprimer
```

Debug mode:

```bash
g++ -std=c++11 -g -pthread -Wall mtprimer.cpp -o mtprimer
```

## Usage

```bash
./mtprimer 10000000 > primes.txt
```