diff options
Diffstat (limited to 'samples/euler/016.bruijn')
-rw-r--r-- | samples/euler/016.bruijn | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/samples/euler/016.bruijn b/samples/euler/016.bruijn new file mode 100644 index 0000000..b5ede83 --- /dev/null +++ b/samples/euler/016.bruijn @@ -0,0 +1,10 @@ +# TODO: digit-sum/quot-rem is still the bottleneck + +:import std/Combinator . +:import std/Math . + +solve (pow (+2)) → digit-sum + +:test ((solve (+15)) =? (+26)) ([[1]]) + +main [solve (+1000)] |