Build into dist/, list primes to 1,000,000 with timing, add wiki

This commit is contained in:
2026-10-20 01:07:36 +08:00
parent e4be228a5b
commit 42774d3d3a
8 changed files with 173 additions and 70 deletions
+24
View File
@@ -0,0 +1,24 @@
# Build and run
**English**
The `Makefile` is in the repository root and puts the executable in `dist/`.
It needs `gcc` (Linux, or MinGW-w64 / MSYS2 on Windows) and a CPU with AVX2.
```bash
make
```
```bash
make run
```
```bash
make clean
```
To save the primes and still see the time, redirect only standard output:
```bash
./dist/prime_avx2 > primes.txt
```