You are viewing a single comment's thread. Return to all comments →
In JS and recursive
function fact(n) { const value = n-BigInt(1); if(n>0) return n*fact(value); if(n==0) return BigInt(1); } function extraLongFactorials(n) { let result = BigInt(n); return fact(result).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 →
In JS and recursive