Algorithms to seive prime numbers