update fermat test to CUDA, bad performance