primes write to file