changed primes examples to take command line arguments

Previously the primes to be calculated were constants
inside the programs.  This has been changed so that
they are taken from the command line instead.