I see that you are using the pairs iterator followed by a if condition in the 
Nim code. Can you check without? so that it's more in line with the C++ code?
    
    
    for j, prime in primes:          # for each prime r1..sqrt(N)
          if nextp[row + j] < uint(Kn):  # if 1st mult resgroup is within 'seg'
    

Reply via email to