From 9ddc223fa28f603b045c07cc9f51b18f59e2077a Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Thu, 26 Aug 2021 12:02:30 +0200 Subject: Problem 23 --- problem23.ijs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 problem23.ijs (limited to 'problem23.ijs') 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 -- cgit v1.2.3