practice_C

Number Checks

Exercises

  1. Check whether a number is a perfect number.
  2. Check whether a number is prime.

Concepts practiced

Divisors, counters, and efficient loop limits.

Click here for explanation and solution.