官术网_书友最值得收藏!

  • The Modern C# Challenge
  • Rod Stephens
  • 78字
  • 2021-08-13 15:23:53

11. Primality testing

A prime number is an integer greater than 1 that has no factors other than 1 and itself. For example, 17 is prime because the only positive integers that you can multiply to get 17 are 1 and 17. In contrast, 21 is not prime because 3 × 7 = 21. Integers greater than 1 that are not prime are called composite numbers.

Write a program that determines whether an integer is prime or composite.

主站蜘蛛池模板: 隆子县| 莎车县| 子洲县| 富川| 长垣县| 特克斯县| 且末县| 宜宾市| 泰宁县| 休宁县| 夏津县| 修武县| 土默特右旗| 新蔡县| 安塞县| 苏州市| 年辖:市辖区| 西平县| 栾川县| 鄂温| 漳州市| 桃源县| 平安县| 白城市| 土默特右旗| 连江县| 建平县| 余庆县| 舟曲县| 集贤县| 南靖县| 无为县| 东平县| 泸溪县| 淮北市| 五大连池市| 徐汇区| 黔南| 天气| 乌兰县| 扶沟县|