Skip to content

Latest commit

 

History

History

solution_2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Nim implementation #2

Algorithm Faithfulness Parallelism Bit count

Run

Run locally

Nim is available via package manager under the popular systems. The following command should get you started:

nim c -d:danger --passC:"-march=native" -d:lto -r primes.nim

Docker

As per usual minimal just a minimal set of commands:

docker build -t primes .
docker run --rm primes

Benchmarks

Gains around 10% performance from solution_1 with just -d:release. With added flags around 50% faster.

Output

beef331;5398;5.00043797492981;1;algorithm=base,faithful=yes,bits=1