diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2021-08-26 12:02:30 +0200 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2021-08-26 12:02:30 +0200 |
commit | 9ddc223fa28f603b045c07cc9f51b18f59e2077a (patch) | |
tree | b2b30ba7d41042a07974d890b1451641ded49297 | |
parent | 97f3b42af8a4c01cc5311746bc7fb06257cf5f2a (diff) |
Problem 23
-rw-r--r-- | problem23.ijs | 6 |
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 |