Fix the programElementary20 XPExercise 9/9
Fix the prime test
Task
The program should print prvocislo (prime) or nie je prvocislo (not prime) for a non-negative whole number. Yet for 7 it says it is not prime, and it does not work for 0 and 1 either. Find the bugs and fix them.
Examples
Input
7
Expected output
prvocislo
Input
8
Expected output
nie je prvocislo
After you submit, 4 hidden tests will also check your solution: the number 1, the number 2, zero, the number 97.
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.