freeCodeCamp/guide/english/mathematics/prime-numbers/index.md

25 lines
861 B
Markdown

---
title: Prime Numbers
---
## Prime Numbers
A prime number is any number greater than 1 that can only be divided evenly by 1 or itself. If it can be divided by another number, then it is a composite number.
Examples:
5 is a prime number because it can only be divided evenly by itself(5), and 1.
12 is a not a prime number as it can be divided evenly by 1, 2, 3, 4, 6, and 12.
The first ten prime numbers are: 2, 3, 5, 7, 11, 13, 17, 19, 23, and 29.
![alt text](https://cdn.britannica.com/04/183104-004-DC24F17A.jpg)
**This is a chart with the first 100 natural numbers, indicating which are prime and which are composite.**
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
<!-- Please add any articles you think might be helpful to read before writing the article -->