fix issue with wrong number of primes output when min specified
Merge pull request #1 from femto113/master

fix issue with wrong number of primes output when min is specified, include max (if prime)