Final answer:
The programming task involves creating a prime number checker that also informs users of the total number of factors for non-prime numbers. It requires structuring the code into functions and includes a repeat option.
Step-by-step explanation:
The question asks for a program to check whether a number is a prime number and to display the total number of factors if it is not. The program should prompt the user to enter an integer between 2 and 5000 and then assess whether the integer is a prime number. If the number is not a prime number, the program should inform the user and display the total count of its factors. This program is to be structured by organizing functionality into separate functions; one for getting a valid integer, another for calculating the number of factors, and the main function that handles user input and output. The ability for the user to repeat the process should also be included.