Exercises: Primeness (while
)¶
Write a program that checks whether a given number is prime!
The number that the program checks can be given in two ways,
As a commandline parameter (for non-interactive use)
Prompted from the user, using the
input()
function