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
- Host: GitHub
- URL: https://github.com/yousefvand/mtprimer
- Owner: yousefvand
- License: mit
- Created: 2018-09-22T09:40:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-22T09:48:45.000Z (almost 8 years ago)
- Last Synced: 2025-02-10T02:45:28.787Z (over 1 year ago)
- Topics: cpp, multithreading, prime-numbers
- Language: C++
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```