There is a algorithm call Prime Swing Factorial that can compute large factorials exactly in arbitrary precision math using prime factorization. Like 10000000! in under second depending of how optimized the math library it. Probably like 100x faster than the normal method.
With Lisp you can use iterative algos and get that under a second too.
SBCL can be ridiculously fast; and if you optimize the compilation for integers... the speed gets really close to your solution.
Worth noting for anyone reaching for this in practice rather than out of curiosity: several standard library implementations (Python's math.factorial is one) already use a divide-and-conquer multiplication scheme instead of naive sequential multiplication for exactly this reason, so you often get most of that speedup for free without implementing prime swing yourself.
> Blue collar workers and service industry workers aren't in immediate danger of being replaced by AI, so there is a cushion period in which there is still a large number of people who have jobs.
There will just be a lot more workers competing for those blue collar and service industry jobs in the future which will drive down their wages.
Public libraries destroy unsold book donations all the time. I often tried to give away some old books I have online and nobody wants them. Some of these books have some nostalgic value to me so I hate to see them just get destroyed so they just lie in my shed.
I have a copy of Michael Abrash's Graphics Programming Black Book (it's like 1k+ pages) with DESTROY written in red on the sides. I appreciate that someone saved it and sold it to me for cheap :)
Which is something I argue against constantly (and at least my local library tries hard not to) --- discarded books are placed on tables near the children's area usually and folks are free to pick them up (it might be that a few of them are sold, I certainly get a lot of ex-library books when buying on Thriftbooks and Better World Books).
A partial solution there is of course a larger budget and a "last copy" policy where the last copy of a text at least is stored away in deep storage against a future loan.
The local libraries also accept book donations for an annual fund-raising sale.
I have a feeling Fujitsu took the blame for mistakes done by the Post Office in order to get future contracts. The contracts are padded to pay fines and damages.
They won't do anything and everyone knows it. It's not like they are critically dependent on it as a 500 million people government, critically dependent on US software, and US and Chinese hardware, and therefore could find themselves with a problem that would effectively end their ability to work digitally overnight.
https://www.dw.com/en/cyberattack-in-berlin-14-million-files...
reply