Verify Prime Number Status Using C++

# Introduction In this lab, you need to create a program that checks whether a given number is prime or not by counting the number of divisors and outputting "prime" if there are exactly two divisors, and "not prime" otherwise.

|60 : 00

Click the virtual machine below to start practicing