summaryrefslogtreecommitdiff
path: root/problem22.ijs
diff options
context:
space:
mode:
Diffstat (limited to 'problem22.ijs')
-rw-r--r--problem22.ijs7
1 files changed, 7 insertions, 0 deletions
diff --git a/problem22.ijs b/problem22.ijs
new file mode 100644
index 0000000..4d7dbbf
--- /dev/null
+++ b/problem22.ijs
@@ -0,0 +1,7 @@
+sep =. '","'
+trim =. }:&}.
+names =. ([:/:~sep&splitstring&trim&fread) 'p022_names.txt'
+val =. [: +/ _64 + a.&i.
+ix =. [:>:[:I.E.&names&<
+nr =. val*ix
+problem22 =: +/;nr each names \ No newline at end of file