资 源 简 介
判断101-200之间有多少个素数,并输出所有素数。
1.程序分析:判断素数的方法:用一个数分别去除2到sqrt(这个数),如果能被整除,
则表明此数不是素数,反之是素数。
-Between 101-200 to determine the number of prime numbers, and output all prime numbers. 1. Program analysis: methods to determine prime numbers: a few were removed 2 to sqrt (this number), if can be divisible, then show that this number is not a prime number, on the contrary is a prime number.