View Single Post
Old 2022-02-05, 17:16   #8
kruoli's Avatar
Sep 2017
Porta Westfalica, DE

2×13×47 Posts

Thank you!

For some reason I was expecting that the straightforward approach would be inefficient but you are correct that this approach can be applied to a file that is not fully stored in memory. I'll code up something later. I like your idea to have the primes precalculated in a file. This makes the code way less complex.
kruoli is offline   Reply With Quote