Adds output of results to primes.txt