Write a program that prompts the user to enter a positive integer, say X, and then prints out either:
Your main program should prompt the user and read X. Then it should call a function, say checkPrime, that will do the work on X printing the appropriate statements.
As a separate document that you will submit to the TA, you should do a case analysis for this problem: problem statement, analysis, design, implementation, and testing.
Here are two sample runs of your program:
Enter value of X > 30
30 is not a prime and its factors are:
1
2
3
5
6
10
15
30
Enter value of X > 17
17 is a prime