Computes the hyperfactorial of n: 1^1 * 2^2 * 3^3 * ... n^n
import std.array: array; auto hfacs = iota(1, 6).map!(n => hyperFactorial(n)).array; assert(hfacs == [1, 4, 108, 27648, 86400000]);
See Implementation
Computes the hyperfactorial of n: 1^1 * 2^2 * 3^3 * ... n^n