Fix bugs for prime_sieve()
Solve problem 12