0
/ 50
You have been given several good and bad versions of an 'isPrime()' function.
Write out some tests which will catch the buggy versions,...
You have been given several good and bad versions of an 'isPrime()' function.
Write out some tests which will catch the buggy versions, and pass the good versions!
The 'isPrime' parameter given below is a function with one integer parameter. You can call it like so: isPrime(2)
Use the basic 'assert' keyword to do the assertions.
Your feedback will appear here when you check your answer.