It doesnt use stack blocks, but its not perfect because it uses Ramanujan’s improvement of Stirling’s approximation. Also works on non integers if you remove the round block.