Left factorials: Difference between revisions
Content added Content deleted
(+ D entry) |
(Tweaked D entry) |
||
Line 39: | Line 39: | ||
auto i2 = iota(1_000, 10_001, 1_000).zip(0.repeat).assocArray; |
auto i2 = iota(1_000, 10_001, 1_000).zip(0.repeat).assocArray; |
||
BigInt fact = 1; |
BigInt leftFact, fact = 1; |
||
BigInt leftFact = 0; |
|||
foreach (immutable j; 0 .. i2.byKey.reduce!max + 1) { |
foreach (immutable j; 0 .. i2.byKey.reduce!max + 1) { |
||
if (j in i1) |
if (j in i1) |