yay, recursive prime number checking