![]() Checking if number is prime or notĪ prime number is always positive so we are checking that in the beginning of the program. For example 13 is a prime number because it is only divisible by 1 and 13, on the other hand 12 is not a prime number because it is divisible by 2, 4, 6 and number itself. A number is said to be prime if it is only divisible by 1 and itself. ![]() In this post, we will write a program in Python to check whether the input number is prime or not.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |