summaryrefslogtreecommitdiff
path: root/problem710.ijs
diff options
context:
space:
mode:
Diffstat (limited to 'problem710.ijs')
-rw-r--r--problem710.ijs3
1 files changed, 3 insertions, 0 deletions
diff --git a/problem710.ijs b/problem710.ijs
new file mode 100644
index 0000000..ab6a4b5
--- /dev/null
+++ b/problem710.ijs
@@ -0,0 +1,3 @@
+c=:0 0 1 0 2 1 4,1e7$0 NB. Initialized cache
+t=:{{r[c=:c y}~r=:{{1e6|+`+`+`-/(2(1e6&|@^)<.-:y-6),c{~y-2 2 6 4}}y}}
+problem710=:>:^:(0~:1e6|t)^:_]6