Output prime number (prime number)

GPS platform, website construction, software development, system operation and maintenance, looking for Senda Network Technology!
http://cnsendnet.taobao.com
from the official blog of Senda Technology
http://www.cnsendblog.com/index.php/?p=529

Investigate the knowledge points: continue: skip this loop, execute the next loop, break: end the current loop
Output prime number (prime number)
prime number
encyclopedia
prime number, also known as prime number. It refers to a number that is not divisible by other natural numbers except 1 and the integer itself in a natural number greater than 1. Because composite numbers are obtained by multiplying several prime numbers, there is no composite number without prime numbers, which shows that prime numbers have a very important position in number theory. Numbers greater than 1 but not prime are called composite numbers. 1 and 0 are neither prime nor composite. Prime numbers are two concepts opposed to composite numbers, and they constitute one of the most basic definitions in number theory. Problems based on the definition of prime numbers have many world-class problems, such as the Goldbach conjecture. The basic theorem of arithmetic. Every number greater than 1 (that is, each positive integer greater than 1) is either a prime number itself, or it can be written as a series of prime numbers. The form that comes out is unique. The important point of this theorem is to exclude 1 from the set of prime numbers. If 1 is considered to be a prime number, then these strict expositions have to add some restrictions.
A natural number with only 1 and its own two positive factors is called a prime number. (Such as: 2 ÷ 1 = 2, 2 ÷ 2 = 1, we can see that the factor of 2 is only two divisors of 1 and itself 2, so 2 is the prime number. The opposite is the composite number: "Except for 1 and In addition to its two factors, there are numbers of other factors called composite numbers. "For example: 4 ÷ 1 = 4, 4 ÷ 2 = 2, 4 ÷ 4 = 1. Obviously, the factor of 4 is except 1 and itself In addition to these two factors, there is a factor of 2, so 4 is a composite number.)
The prime numbers within 100 are 2, 3, 5, 7, 11, 13, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, there are 25 prime numbers in 100.
Note: (1) 1 is neither a prime number nor a composite number. Because its divisor has only one factor of 1.
(2) 2 and 3 are the only two consecutive numbers of all prime numbers.
(3) 2 is the only prime number that is even [even].

GPS platform, website construction, software development, system operation and maintenance, looking for Senda Network Technology!
http://cnsendnet.taobao.com
from the official blog of Senda Technology
http://www.cnsendblog.com/index.php/?p=529

Guess you like

Origin blog.51cto.com/14036626/2487956