Add prime number functions