SECTION 18 / 48

Boundary Cases for is_prime()

1 min read

For isPrime(num), 0 and 1 are boundary values and are not prime. The values 2 and 3 are prime.

Boundary Cases for is_prime()
Boundary Cases for is_prime()
Open image ↗
Boundary Cases for is_prime()
YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑