You are viewing a single comment's thread. Return to all comments →
Using BigInt() worked for me in javascript :)
function extraLongFactorials(n) {
let longn = BigInt(n); let x = 1n; for (let i = longn; i > 0; i--) { x *= i; } console.log(String(x));
}
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 →
Using BigInt() worked for me in javascript :)
function extraLongFactorials(n) {
}