aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/euler/001.bruijn
diff options
context:
space:
mode:
Diffstat (limited to 'samples/euler/001.bruijn')
-rw-r--r--samples/euler/001.bruijn10
1 files changed, 10 insertions, 0 deletions
diff --git a/samples/euler/001.bruijn b/samples/euler/001.bruijn
new file mode 100644
index 0000000..1678b58
--- /dev/null
+++ b/samples/euler/001.bruijn
@@ -0,0 +1,10 @@
+:import std/Combinator .
+:import std/List .
+:import std/Math .
+
+solve [∑(crit <#> ({ (+0) → --0 }))]
+ crit φ m ((\mod (+3)) → zero?) ((\mod (+5)) → zero?)
+
+:test ((solve (+10)) =? (+23)) ([[1]])
+
+main [solve (+1000)]