C++ program to determine whether a number is prime, left-truncatable prime, right-truncatable prime, and left-and-right truncatable prime