Saturday, 23 December 2017

Check Number is Prime Using Python

Number is Prime Or Not



First We want to Know Theory of  Prime Number

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:
2357111317192329313741434753596167, 7173798389, 97

Python Code for check Number  is prime or Not .

---------------------------------------------------------------------------------------------------------------------------


----------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment

IT's Good