Primes - allocate descendants to their ancestors: Difference between revisions
Primes - allocate descendants to their ancestors (view source)
Revision as of 09:02, 15 July 2023
, 10 months ago→{{header|Sidef}}: update
m (→{{header|Sidef}}: update) |
|||
Line 2,321:
var idx = descendants[s].first_index {|x| x > maxsum }
for d in (descendants[s].
ancestors[d] = (ancestors[s] + [s])
}
|