find first n primes

both used sifting algorithm, but the fast version paid more careful
attention on datastructure, thus cut time from 16s to 9s