improved Goldbach's algorithm