登录
首页 » C# » 判断101

判断101

于 2022-02-13 发布 文件大小:2.59 kB
0 75
下载积分: 2 下载次数: 1

代码说明:

判断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.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C8051USB
    这是一个基于C8051F340的SD读卡器 #include "F34x_MSD_Physical_Settings.h" #include "F34x_MSD_CF_Basic_Functions.h" #include sbit Led1 = P2^2; sbit Led2 = P2^3; void CF_Port_Init(); //---------------------------------------------------------------------------- // Init_CF //---------------------------------------------------------------------------- // // This routine initializes the Compact Flash memory card // // Parameters   : // Return Value : //---------------------------------------------------------------------------- char Init_CF() {   xdata char result = Dtct_Card();   xdata unsigned int loop = 0;   xdata unsigned reinit = 0;   if (result == 1) return (CF_NO_CARD); REINIT:   CF_RST = 1;   while(++loop);  
    2022-04-22 04:06:23下载
    积分:1
  • 完美的LED显示效果,支持多行文字和图片显示
    四行LED屏显示代码支持各种特效显示支持讯飞语音芯片的播放效果
    2023-03-20 18:20:07下载
    积分:1
  • 在Visual C++中使用内联汇编不需要额外的编译器和联接器,且可以处理Visual C++中不能处理的一些事情,而且可以使用在C/C++中的变量,所以非常方...
    在Visual C++中使用内联汇编不需要额外的编译器和联接器,且可以处理Visual C++中不能处理的一些事情,而且可以使用在C/C++中的变量,所以非常方便。内联汇编主要用于如下场合:   1.使用汇编语言写函数;   2.对速度要求非常高的代码;   3.设备驱动程序中直接访问硬件;   4."Naked" Call的初始化和结束代码。 -used in conjunction with the compilation does not need additional compiler and connectivity devices, which can be dealt with Visual C can not handle some things that can be used in the C/C variables, so it is convenient. In conjunction with the compilation mainly for the following occasions : 1. The use of assembly language to write function; 2. The very high speed code; 3. Device driver had direct access to hardware; 4. "Naked" Call the initialization and termination code.
    2023-07-28 22:55:03下载
    积分:1
  • cc2530-datasheet
    cc2530zigbee芯片英文资料,数据手册(cc2530zigbee chip information in English, Data Sheet)
    2013-08-24 15:02:02下载
    积分:1
  • operating-system-test-2
    重庆大学软件学院操作系统实验二,线程及其调度,实现并行排序,并用图形界面表示(operating system test 2,thread scheduling and realize the parallel sorting showing as a graphical interface)
    2016-03-04 15:30:59下载
    积分:1
  • C# 获取本地拨号列表并实现拨号/创建拨号功能
    C# 获取本地拨号列表并实现拨号/创建拨号功能
    2013-10-11下载
    积分:1
  • IDA-plugin-wirting(all-chapter)
    交互式反编译工具ida pro 插件编写英文手册(Interactive decompile ida pro tools plug-in English-language manual)
    2020-07-02 16:00:02下载
    积分:1
  • BP_CPP
    合成孔径雷达成像程序,使用BP算法,对点目标进行仿真,实现点目标的成像(Synthetic aperture radar imaging procedures, the use of BP algorithm, the point target simulation to achieve point target imaging)
    2013-12-19 12:17:52下载
    积分:1
  • iu6djgtjer5y
    X射线头影图象的自适应卡尔曼滤波方法研究_徐常胜.zip(Cephalometric X-ray image of the adaptive Kalman filtering method _ Xu Changsheng. Zip)
    2013-08-08 20:13:57下载
    积分:1
  • Digital_Media_Processors
    Digital Media Processors are from DSPs that produced by Texas Instruments www.ti.com
    2009-08-07 17:10:53下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载