A method for finding prime numbers