Severity: Warning
Message: fopen(/home/answnniz/solutionspile.com/system/sessions/ci_session0b7e1c8900a2bf683209b23f63caa56c2a5249bc): failed to open stream: Disk quota exceeded
Filename: drivers/Session_files_driver.php
Line Number: 176
Backtrace:
File: /home/answnniz/solutionspile.com/index.php
Line: 367
Function: require_once
Severity: Warning
Message: session_start(): Failed to read session data: user (path: /home/answnniz/solutionspile.com/system/sessions)
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /home/answnniz/solutionspile.com/index.php
Line: 367
Function: require_once
Using java programming console Chapters 15-16 Review Project 1: Prime Number Checker Create an application that checks whether a number is a prime number and displays its factors if it is not a prime number. Console ``` Prime Number Checker Please enter an integer between 1 and 5000: 5 5 is a prime number. Try again? (y/n): y Please enter an integer between 1 and 5000: 6 6 is NOT a prime number. It has 4 factors: 1 2 3 6 Try again? (y/n): y Please enter an integer between 1 and 5000: 200 200 is NOT a prime number. It has 12 factors: 1 2 4 5 8 10 20 25 40 50 100 200 Try again? (y/n): n Bye! ``` Specifications - A prime number is divisible by two factors (1 and itself). For example, 7 is a prime number because it is only divisible by 1 and 7 . - If the user enters an integer that's not between 1 and 5000, the application should display an error message. - If the number is a prime number, the application should display an appropriate message. - If the number is not a prime number, the application should display an appropriate message. Then, it should display the number of factors for the number and a list of those factors. - Store the factors for each number in an array list. - Use the Console class presented in chapter 7 or an enhanced version of it to get and validate the user's entries.
