Comparing performance of c++, java and node for Primes (Google's Primes test)