summaryrefslogtreecommitdiff
path: root/problem42.ijs
diff options
context:
space:
mode:
Diffstat (limited to 'problem42.ijs')
-rw-r--r--problem42.ijs5
1 files changed, 5 insertions, 0 deletions
diff --git a/problem42.ijs b/problem42.ijs
new file mode 100644
index 0000000..c650666
--- /dev/null
+++ b/problem42.ijs
@@ -0,0 +1,5 @@
+require 'tables/csv'
+wordVal =: [:+/_64+a.i.]
+wordValues =: ;wordVal each readcsv 'p042_words.txt'
+triangleNums =: +/\1+i.20
+problem42 =: +/wordValues e."0 _ triangleNums