Prime sifter, and find the nth prime