Removing primes.txt file, and applying some bash kung-fu to primes.sh
Giving a more codnsistent ordering on questions stack.

plus some verbosity.
Avoid leaking 2 bignums* where opening file fails.