diff options
author | Marvin Borner | 2024-03-25 16:21:54 +0100 |
---|---|---|
committer | Marvin Borner | 2024-03-25 16:21:54 +0100 |
commit | f8398804d351667a7b887b89f6f70c7d5c407d22 (patch) | |
tree | d33df8e6bbe60640beb9e99c778eb27b1aa77995 /samples/euler/048.bruijn | |
parent | 7bfc78b122ad9cbb65eed16f7de4d4021547c2a8 (diff) |
More samples and definitions
Diffstat (limited to 'samples/euler/048.bruijn')
-rw-r--r-- | samples/euler/048.bruijn | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/samples/euler/048.bruijn b/samples/euler/048.bruijn new file mode 100644 index 0000000..e4f2cbb --- /dev/null +++ b/samples/euler/048.bruijn @@ -0,0 +1,11 @@ +# TODO: also very slow + +:import std/Combinator . +:import std/String . +:import std/Math . + +solve [∑ (+1) → 0 | [pow-mod 0 0 (+10000000000)]] + +:test ((solve (+10)) =? (+405071317)) ([[1]]) + +main [solve (+1000)] |