Number is Prime Or Not
First We want to Know Theory of Prime Number
A prime number (or a prime) is natural number greater than 1 that has no positive divisors other than 1 and itself. A natural number greater than 1 that is not a prime number is called a composite Number For example, 5 is prime because 1 and 5 are its only positive integer factors
----------------------------------------------------------------------------------------------------------------------
The first 100 prime numbers (all the prime numbers less than 100) are:
- 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97
Python Code for check Number is prime or Not .
-
---------------------------------------------------------------------------------------------------------------------------
Python Code for check Number is prime or Not .
---------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment