working prime number finder