Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

100% Positive

Analyzed from 113 words in the discussion.

Trending Topics

#factorial#formula#https#cached#map#best#actualy#need#fast#little

Discussion (4 Comments)Read Original on HackerNews

ipeev12 minutes ago
A cached map will do best if you actualy need a fast factorial. There are very little entries before the numbers become pointlessly big.
zamadatixabout 1 hour ago
To all commenting about the Sitrling formula, there is a separate page linked at the end for approximations http://www.luschny.de/math/factorial/approx/SimpleCases.html which contains many advanced options to compare for that.
smokelabout 2 hours ago
I hoped this would help me solve some more Project Euler [1] problems. Unfortunately, the algorithms given are not explained in detail, so the learning experience is somewhat mediocre. Then again, I have ChatGPT to elucidate them for me.

This article [2] has some interesting details on the swinging factorial function n≀, but I can't seem to find the essay that it references: "Swing, divide and conquer the factorial", 2008.

[1] https://projecteuler.net/

[2] https://oeis.org/A000142/a000142.pdf

dvhabout 2 hours ago
No Stirling formula?