summaryrefslogtreecommitdiff
path: root/problem14.ijs
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2021-04-24 18:01:19 +0200
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2021-04-24 18:01:19 +0200
commitb87ceba616eb7adcf0422e7cb2bf9940b5b0e108 (patch)
tree0918cc5efba3d15f921e20b9cc7fe17f39a90d8c /problem14.ijs
parent47a2a98c69aaabc28a6eaf6ab3dbe0585e83d934 (diff)
Problem 14
Diffstat (limited to 'problem14.ijs')
-rw-r--r--problem14.ijs3
1 files changed, 3 insertions, 0 deletions
diff --git a/problem14.ijs b/problem14.ijs
new file mode 100644
index 0000000..713bbb4
--- /dev/null
+++ b/problem14.ijs
@@ -0,0 +1,3 @@
+next =: (-:`(1+3&*)) @. (2&|)
+seqLength=: ((>:@$:@next)`1:) @. (<:&1) " 0
+problem14=: {. \: seqLength (i.1000000) \ No newline at end of file