cuda_gcd works for small values