Nodejs script that prints the first 100 primes to a text file