Solution

And that’s it. It takes around 50 milliseconds, which is totally acceptable I would say. It can be sped up quite a bit though if we find a more efficient prime number generator. This, however, I will try to do in a later problem.

Post navigation

Greetings! I am Torleif Berger, currently working as a Software/Web Developer. I'm a Seventh-Day Adventist, an introvert and a highly sensitive person (HSP). I like to dabble in various types of juggling, in-door rowing and other activities, but most of my time is spent in front of a screen. Have a look around c'',)