List of prime numbers to 100 python

broken image

The property of being prime is called primality. Primes are central in number theory because of the fundamental theorem of arithmetic: every natural number greater than 1 is either a prime itself or can be factorized as a product of primes that is unique up to their order. However, 4 is composite because it is a product (2 × 2) in which both numbers are smaller than 4. For example, 5 is prime because the only ways of writing it as a product, 1 × 5 or 5 × 1, involve 5 itself. A natural number greater than 1 that is not prime is called a composite number. For other uses, see Prime (disambiguation).Ĭomposite numbers can be arranged into rectangles but prime numbers cannot.Ī prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers.

broken image