View Single Post
Old 2021-01-29, 15:55   #9
Viliam Furik
Viliam Furik's Avatar
"Viliam Furík"
Jul 2018
Martin, Slovakia

5×149 Posts

Originally Posted by kruoli View Post
So my next question would be: Do you really need to store the primes?
I don't think I can do it without storing them. Primorial is the product of all the primes used. In the computation of the numerator, each prime is used once, that's true. I have looked at the primesieve_next_prime function, but I don't think it can be faster to compute the primes instead of storing some sort of a list of them.
Viliam Furik is offline   Reply With Quote