summaryrefslogtreecommitdiff
path: root/problem23.ijs
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2021-08-26 12:02:30 +0200
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2021-08-26 12:02:30 +0200
commit9ddc223fa28f603b045c07cc9f51b18f59e2077a (patch)
treeb2b30ba7d41042a07974d890b1451641ded49297 /problem23.ijs
parent97f3b42af8a4c01cc5311746bc7fb06257cf5f2a (diff)
Problem 23
Diffstat (limited to 'problem23.ijs')
-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