Hacker News new | ask | show | jobs
by ted_dunning 454 days ago
That is basically the same algorithm I used. The sieve I used was only mod 10^15 but it sufficed to give the results at 10^13 in a few seconds and 10^15 in a few hours.

As mentioned in another comment, the code is at: https://github.com/tdunning/EvenDigits