fixed a bug of not array idx out of bound and not print the last element
Merge branch 'master' of https://github.com/cyc115/examples-primes