You are viewing a single comment's thread. Return to all 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()); }
Seems like cookies are disabled on this browser, please enable them to open this website
Extra Long Factorials
You are viewing a single comment's thread. Return to all comments →
If you're using JavaScript, here is a straightforward solutions that works for me...