An algorithm to find a list of prime numbers