Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.09 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.09 KB

Standard ML solution by NotMatthewGriffin

Algorithm Faithfulness Parallelism Bit count

This is an implementation in Standard ML.

Run instructions

SMLofNJ

Execute the following from this directory:

sml build.sml
sml @SMLload=primes.x86-linux

MLTON

Execute the following from this directory:

mlton -link-opt '-static' primes.mlb
./primes

MLTON with llvm

With a recent enough version of the mlton compiler (since release 20180207) llvm can be used for code generation. If the tools llvm-as, opt, llc are available in the compilation environment then this option can be used to compile a faster sieve program.

Execute the following from this directory:

mlton -link-opt '-static' -codegen llvm primes.mlb
./primes

Docker

A Dockerfile has been provided.

Output

NotMatthewGriffin_SML;2181;5.001;1;algorithm=base,faithful=yes,bits=1