Improved the code so that either time or amount of searched primes can be specified.
Changed test code to find the first 1,000,000 primes.