Question: Print Largest Prime Write a python 3 program that reads a sequence of numbers ended by 0 and print the biggest of the prime numbers
Print Largest Prime
Write a python 3 program that reads a sequence of numbers ended by 0 and print the biggest of the prime numbers in the list. If there are no prime numbers in the sequence, the program should print the string No prime as output.
Sample Input Sample Output
1 7
2
4
5
7
0
Note: your code should be able to convert the sample input into the sample output. However, this is not enough to pass the challenge, because the code will be run on multiple test cases. Therefore, your code must solve this problem statement.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
