C program to check if a given number is prime. #elkick #learnc

preview_player
Показать описание
A prime number is a natural number greater than 1 that has no divisors other than 1 and itself. In other words, a prime number can only be divided evenly (without a remainder) by 1 and the number itself.

For example:

2 is a prime number because it can only be divided by 1 and 2.
3 is a prime number because it can only be divided by 1 and 3.
4 is not a prime number because it can be divided by 1, 2, and 4.
Рекомендации по теме