void main() {
import std.stdio, std.algorithm, std.conv, std.bigint, std.string;

    auto n = 17.BigInt ^^ 179;
    n.text.dup.representation.sort().release.assumeUTF.writeln;
}

Better:

    n.to!(char[]).representation.sort().release.assumeUTF.writeln;

Bye,
bearophile

Reply via email to