So at 12 threads. I can do 10^12 in about 3hrs and 45 mins. But obviously takes over the whole system. I think it could even be more optimized if the concept was taken further in the right hands or hardware. I should add some benchmarks for sure. Will do so soon.
SethTro|4 months ago
I wrote https://github.com/sethtroisi/goldbach in the last four hours and I think it's 10-100x faster than your code
I know of at least another 4x I could improve it but I've been nerd sniped enough for the night.I wouldn't trust it 100% but it finds all terms in https://oeis.org/A025018 and https://oeis.org/A025019 and I can verify in https://sweet.ua.pt/tos/goldbach.html