3 ms·
Anyone find the 528 MB C++ file that is referred to in the Twitter screenshot near the end of the article? (With only 57 lines of code but, oh, an array with t
by logicallee 10y ago
Anyone find the 528 MB C++ file that is referred to in the Twitter screenshot near the end of the article? (With only 57 lines of code but, oh, an array with the first 50M primes hardcoded.) What's that about?
- omaranto 10y agoI'd guess it is probably for Project Euler.
- logicallee 10y agothat "probably" makes me wonder why you would say that? is there something about 50 million primes in there?
- omaranto 10y agoI don't think you really need that many primes for Project Euler, but I can certainly imagine someone tired of including a call to her prime sieve in tons of problems, and of having to waiting for it to run, and thinking, "let's just make a library that has all the primes I could possibly need in a constant array".