3 ms·
Because the alternative: generating the primes at compilation time with a template functional expression would be too slow, and quite possibly would explode the
by informatimago 10y ago
Because the alternative: generating the primes at compilation time with a template functional expression would be too slow, and quite possibly would explode the compiler's memory limits. (No Turing Machine here), and doing it at run-time or deliverying it as a "resource file" is obviously out of the question.