aboutsummaryrefslogtreecommitdiff
path: root/example/prime/README.md
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-02-04 17:38:49 +0100
committerAdrian Kummerlaender2015-02-04 17:38:49 +0100
commit7eef405eeff59c27691be294906e8381a76771e2 (patch)
tree3dacd93798eabc5a467f9104850f87d071ba579d /example/prime/README.md
parent6d150b7d5a2c65a54203608e398ed38e48ed36e3 (diff)
downloadTypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.tar
TypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.tar.gz
TypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.tar.bz2
TypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.tar.lz
TypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.tar.xz
TypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.tar.zst
TypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.zip
Implemented the Sieve of Eratosthenes as a basic example
Diffstat (limited to 'example/prime/README.md')
-rw-r--r--example/prime/README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/example/prime/README.md b/example/prime/README.md
new file mode 100644
index 0000000..8d2e10d
--- /dev/null
+++ b/example/prime/README.md
@@ -0,0 +1,5 @@
+# prime
+
+…is a small example of how _TypeAsValue_ may be used to perform compile time computations, in this case finding prime numbers using the _Sieve of Eratosthenes_.
+
+Note that this implements a rather plain version of the sieve lacking any kind of optimization. Currently used features of _TypeAsValue_ are `Remove` as a higher order filter function, `Iota` for generating the candidate list, `runtime::for_each` to ease runtime representation of the selected primes as well as basic math and type operators.