about summary refs log tree commit diff
path: root/day02.k
diff options
context:
space:
mode:
Diffstat (limited to 'day02.k')
-rw-r--r--day02.k7
1 files changed, 7 insertions, 0 deletions
diff --git a/day02.k b/day02.k
new file mode 100644
index 0000000..5a369a0
--- /dev/null
+++ b/day02.k
@@ -0,0 +1,7 @@
+d:+.:'0:`day02
++/(|/d)-&/d                        / 45351
++/{|/|/{r*x=y*_r:x%y}/:[x;x]}'+d   / 275
+\\
+
++/{*{(x>1)&x=_x}#,/x%\:x}'d  / BUG in k division?
++/{|/{x=_x}#,/x%/:x}'+d
\ No newline at end of file