Question: complete in BlueJ please Write a program (in any language) which reads in numbers from the keyboard, one per line, until it gets a zero.

complete in BlueJ please
complete in BlueJ please Write a program (in any language) which reads

Write a program (in any language) which reads in numbers from the keyboard, one per line, until it gets a zero. For each number, print out whether it is prime. After the zero is read, print out in this order): 1. the number of values entered, 2. how many were prime, 3. how many were not prime (do not count the zero). 4. the highest prime number, 5. the lowest prime number. For this program, a prime number is any whole number greater than or equal to 2 that its s not divisible by any values other than the number 1 and itself. Flere is sample output from one version of the program, done in Python using IDLE: Python 3.8.1 Shell Python 3.8.1 (v3.8.1: 16293b6006, Dec 18 2019, 14:08:53) (Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license()" for more information. ========== RESTART: /Users/kilroy/Rowan/Class/LabTech/Primes/primes.py --------- 4231 4231 is prime 9 9 is not prime 17 17 is prime 3 3 is prime 12 12 is not prime # values: 5 Primes: 3 Non-primes: 2 Max prime: 4231 Min prime: 3 >>>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!