finish basic prime_numbers function