Dec-01-2019, 09:15 PM
Hello, I need a python program that asks the user to enter any number of lines with each line containing 5 natural numbers separated by a space. The zero will designate the end of the input. It then prints out prime numbers corresponding to each row. If the line doesn't have any prime numbers, it prints none. For example:
Sample input
9 8 7 6 5
11 2 3 4 5
4 6 8 10
0
Sample output
7 5
11 3 5
None
I don't know where to start, if someone would please help me that'd be great!
Sample input
9 8 7 6 5
11 2 3 4 5
4 6 8 10
0
Sample output
7 5
11 3 5
None
I don't know where to start, if someone would please help me that'd be great!