• + 4 comments

    If you're using JavaScript, here is a straightforward solutions that works for me...

    function extraLongFactorials(n) {
    
        var bigInt = BigInt(n);
        var factorial = 1n;
    
        for (let i = 0n; i < bigInt ; i++) {
            factorial *= bigInt - i;
        }
        
        console.log(factorial.toString());
    }