summaryrefslogtreecommitdiff
path: root/problem23.ijs
blob: 1783678688125922c2780d5a22daa6e382ab1565 (plain) (blame)
1
2
3
4
5
6
divisors =. [:I.0=i.|]
abundant =. +/&divisors>]
limit =. 28123
abundantNums =. I. abundant"0 i.limit
sums =. ~.,+/~abundantNums
problem23 =: +/I.-.(i.limit)e."0 _ sums