Re: about prime number generation

2022-05-14 Thread Marco Bodrato
Il 2022-05-01 17:01 Marco Bodrato ha scritto: Il 2022-04-30 23:39 Seth Troisi ha scritto: next_prime took up all of my energy We should further improve that work! With your improvements to nextprime, it's really a waste of resources if ones have to write for (int i = 0; i < delta2; i++)

Re: about prime number generation

2022-05-01 Thread Marco Bodrato
Ciao Seth, Il 2022-04-30 23:39 Seth Troisi ha scritto: I worked on nth_prime(n) in a series of patches three years ago That code was very interesting. It would be nice to get rid of the double type and the function log(). The library is not using math.h and libm anywhere now. But it doesn't