aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/euler/007.bruijn
diff options
context:
space:
mode:
Diffstat (limited to 'samples/euler/007.bruijn')
-rw-r--r--samples/euler/007.bruijn11
1 files changed, 11 insertions, 0 deletions
diff --git a/samples/euler/007.bruijn b/samples/euler/007.bruijn
new file mode 100644
index 0000000..6d05451
--- /dev/null
+++ b/samples/euler/007.bruijn
@@ -0,0 +1,11 @@
+# TODO: Write faster primes function
+
+:import std/Combinator .
+:import std/Math .
+:import std/List .
+
+solve dec → (\index primes)
+
+:test ((solve (+6)) =? (+13)) ([[1]])
+
+main [solve (+10001)]