summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--problem12.ijs7
1 files changed, 7 insertions, 0 deletions
diff --git a/problem12.ijs b/problem12.ijs
new file mode 100644
index 0000000..db7a9c0
--- /dev/null
+++ b/problem12.ijs
@@ -0,0 +1,7 @@
+triNum=: [: +/ 1 + i.
+
+factorCount=: [: */ 1 + _ q: ]
+
+nums=:triNum"0 (1+i.20000) NB. should be enough
+
+problem12=: nums {~ 1 i.~ (500<]);factorCount each nums \ No newline at end of file