V8 is damn fast, faster than C++ when it comes to numerics
github.comusing doubles to find prime numbers is problematic to say the least...but then running a benchmark that only exercises the integer subset of those doubles is malignant if not ignorant
did u try n % i == 0 in the c code?