summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--problem23.ijs6
1 files changed, 6 insertions, 0 deletions
diff --git a/problem23.ijs b/problem23.ijs
new file mode 100644
index 0000000..1783678
--- /dev/null
+++ b/problem23.ijs
@@ -0,0 +1,6 @@
+divisors =. [:I.0=i.|]
+abundant =. +/&divisors>]
+limit =. 28123
+abundantNums =. I. abundant"0 i.limit
+sums =. ~.,+/~abundantNums
+problem23 =: +/I.-.(i.limit)e."0 _ sums