Check whether a given integer is prime in C using optimized trial division with square root boundaries in standard C11.
Reverse a null-terminated character array (string) in place using two raw memory pointers without allocating secondary buffers.
Demonstrates safe dynamic heap memory allocation in C, resizing buffers with realloc, and avoiding memory leaks with free().