基于visual Studio2013解决C语言竞赛题之0507筛选素数
题目
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiIAAABzCAYAAACl+WlRAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACESSURBVHhe7Z2Nbiw5jqxn7osP5sn3dmA7gNhokqKUWZXpY36AkBJ/gqTK4014fdz//p+/+NcwDMMwDMMD/L+/n8MwDMMwDF9nXkSGYRiGYXiMeREZhmEYhuEx5kVkGIZhGIbH+CNeRP7973//vfu/ZPYV38o7rfNJ3tiTstPflVmi3F29O3q9MkOHO/Q7Gp+e4w5WPXZn+PasqLdaHbpxIIvd0diBc0TrCaK6nV48ptt/FrfK7+rfAWqtVsar/tVM1aijbXsefZGe+lwj8ymnvohuzatAO8NrfrKPu9jpkbHVHYDOPVR1V/oKNVSvs/8UnRpVzNV8B7G73HVHWZ+r/tW/M+sd7PRGYOsSzdXZ30mm+6l6K6K6nV528tTe2UdUeQrsbuugtXd6cV73IuLtrGzce1wU42QxWTzp6HXw+N38E05n+6l05ul+DrA7V++SMf4kHY0u0Nql00unx2iuiEynU+OUrJcK70X7+2SvEZ3+O/10+maMP0lH44RM91P1KqpeHI9jbhRLNEfj9Un8TFzfc7N9RjdmRaaRvohEoqtGrhINW9ncl9nByoZ9hucpnbwqJqOqqaj2KsfnXe27ZDmwg12fwrgOqrUzh8ZG9eCL9NwW5Trd+Kwf7+EK0UxdTnon8Ee1q36u9HrCTr1sTmW3d9Vc5a56zfy7fVfxjPOYVe9dqhlOa2ivXY3oDpAb9eG23V6jWoQ6HpP1UPXivog7Yip/+SKirk4jV4lqXLF18dxMa1Vjt4crPYNu3yDy0aa+SsNBLMm0fQ9O62VEGl4jIurBtZjr+sBjnZWfsAbw2jx3tXbY6a+K2/FzH+VUOqsad7JTa3eODp6/0oN/Raefbt9aL+uzq9Ul0zut43ldnSgPdHrbPRPWAFl8lQu7+zu5ZOUniFuR6bR+WbXbyB2gl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KczraCur5VvB5+lw0mdK2T3hj6qu6RP87Gy/mn3GOyznKvMS8gw/B5e8cuqIPpG2LUppzrVOcoHtPvTyeKiPN2DbqznOSs/8bjqzD2eEVGe65HIvpuTxe2y0oE/w/vd6Ymx/oxwX3Xe0QGRVkRUL6tFjcjnZC8h//nPf/7eDcPwJ/ErXkQiPK7KW/WR7R338Vzle0wW63lK5XM8dkdXz5mvsoNODom0nCivIquVEcWrbUfP80CW67pVnUi3g+u5TlTf7aDKy+DLyLx8DMOfz+v+1YyuzPY06CP7ZspvxidUuqdkmnff5UqP91LNd+XuCDR07eD9nfayW/eb6N1wRXbnjs93h3kBGYbfw/xE5G+qPPrwBB4X5UaxHqfnSEOhP8rBE3h+V1NxW6WR5YMop9LmvrKpD6zOuyDfWel5jsd3e1Idxle57rsSq+dKB8APopgqt8obhuF386qfiHwbfHPk6oBvot1vpKtY/abNfdaHxkaasLmdWnhmi37HY7owPpoFZ7dnswDGZ0R6V4GerwjU5AKr+A6RxkrP++iA2EoXvkyP9iiGulkufFXdYRh+L6/6iUiXqmV+Q1zhcVEee1rp7dbUeM/1mpV25esS1a/OADZAu58JcytN5gK1RVog01vhep8mmutOojvwOuyB9iiHRLmaB7KYSNdjh2EYYv71r/8PAJrmfPkbLhEAAAAASUVORK5CYII=" alt="" />
解决代码及点评
/************************************************************************/
/*
7. 用筛选法求 2到 100之间的素数。
方法如下:首先 2是素数,凡 2 的倍数都不是素数,于是把这些数从数表中筛去,
2以后没有被筛去的第一个数是 3, 然后把 3的倍数都从数表中筛去, 3以后没被筛去的第一个数是 5
,然后把 5 的倍数都从数表中筛去。如此下去,直到遇到某数 K(≤ N),其后没有数可筛选为止,
这时保留下的未被筛去的数就是 2到 N的素数。
*/
/************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h> void main()
{
const int N=101;
int Sn=(int)sqrt(double(N-1)); // 筛选法只要筛选到sqrt(N-1)
int arr[N]; // N个标记,如果arr[k] = 1表示k是素数
for (int i=0;i<N;i++)
{
arr[i]=1; // 初始化时认为全是素数
}
arr[0]=arr[1]=0; // 0和1认为不是素数
for (int j=2;j<Sn;j++) // 从2开始循环
{ // 如果j对应的值是0,那么j是合数,则找下一个
while (arr[j]==0)//循环取得数字
{
j++;
}
for (int i=j+j;i<N;i=i+j)//找到某个素数之后,把它倍数下标对应的值改成0,表示合数
{ arr[i]=0; }
}
for (int i=2;i<N;i++) // 输出下标为1的素数
{
if (arr[i]==1)
{
printf("%5d",i);
}
} system("pause");
}
代码下载及其运行
代码下载链接:
http://download.csdn.net/detail/yincheng01/6653779
解压密码为c.itcast.cn
下载解压后用VS2013打开工程文件
点击 “本地Windows调试器” 执行
程序运行结果
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqUAAAG6CAYAAAAxsD/hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACghSURBVHhe7d0JvF1VfS/w/01IZIaghATos5NTZZ5UKIJMQQkO1VqpVtRaWztRwGKlk+9DRbGKUK20fQ6RatU+a5+tSpUpqNDiwAy19dnKU0IGBpkCCUnu22ufvW/2PdlnuEnuXSfw/ca/Z++1195rnbXvzf1xzr03Yzd9f+X4qhUr4kc//EGsXbs2vvj3SwIAAKbTMR8+s9rqGPv3Hz04njbOeetrY2xsLF503PFx9LGLYv78vcoOAACwtax57OG4/dYb4mMf/WiMj49PhNMylKZAOm/eHvFbZ5wTq2NueQAAAKbLwl3nxvnn/Uncf/99ZTAdO/u8D45/71uXxx/+6btj9dhTqm4AADC9Fu4yJ845+3fiGYefGGOnnnrq+AtecHQcefIvVIcBAGBmLP/PG+NTn7q0E0r/9Lw/j0fG51SHAABgZjz7J+bHm9/4y51Q+pGP/11890erqkMAADAznr3vnmUonVXtx5hSSimllFIzXLWJV0r/8657qiYAAJgZz9znaZPfvv/esnurQwAAMDOesfdTJ4fS/3v3fdUhAIAnhkceeiT+8z/+O+6//6GqZfrNm7dLPPNZPxU77bJTuW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IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAIDuhFACAoc2ePTvmzp1b1pw5cyYe60rHN4dQCgDA0FLoPOqoo+Kggw4q69BDD41FixbFmWeeGZdccknMmrV58VIoBQBgaOvXr49rr722DKRHHnlkvOIVr4i3vvWtcdppp5WPGzZsqHpOjVAKAMDQUihNtWTJkpg/f34ZTp/1rGfFEUccUQbSdGxzCKUAAPQ1NjY2qVL4TPXOd76zfDv/Oc95zhYF0kQoBQCgrxQ824Lp+Ph4vOQlLykf0353n6kQSgEA6CuF0vQDTN2hMwXRdevWbXEgTYRSAAD6qgNpt7qtGUbb+g1DKAUAoK+2V0mHqakQSgEA6KtXKE3qxy0llAIA0Nfq1as3q6ZibPHixeMfXfLpuO+x8appsuuv+Hwcf/zx1R4AAEzNvvvuG9+966Fqb7I9th+LX33DaYND6bP32aXaAgCAzbPFoRQAAKZLHUp9TykAANkJpQAAZCeUAgCQnVAKAEB2QikAANlN/PQ9AADkMPEroap9AADIIOL/A3CdL0ua6KkjAAAAAElFTkSuQmCC" alt="" />
基于visual Studio2013解决C语言竞赛题之0507筛选素数的更多相关文章
- 基于visual Studio2013解决C语言竞赛题之0603打印素数
题目
- 基于visual Studio2013解决C语言竞赛题之0601判断素数函数
题目 解决代码及点评 //编写一函数判断一个数是否为素数 #include<stdio.h> #include <stdlib.h> # ...
- 基于visual Studio2013解决C语言竞赛题之0501挑选素数
题目
- 基于visual Studio2013解决C语言竞赛题之0409 100以内素数
题目 解决代码及点评 在已经知道素数是怎么判断的基础上,增加循环,可以判断出100以内的素数 /******************************************* ...
- 基于visual Studio2013解决C语言竞赛题之0401阶乘
题目 解决代码及点评 这个是一道经典的教科书题目,基本上每本基础的c/c++语言教科书都会有这个题目 用来演示循环语句 #include <stdio.h> #include ...
- 基于visual Studio2013解决C语言竞赛题之0205位数求和
题目
- 基于visual Studio2013解决C语言竞赛题之0201温度转换
题目 解决代码及点评 #include <stdio.h> #include <stdlib.h> void main() { float f; float c; float ...
- 基于visual Studio2013解决C语言竞赛题之0408素数
题目 解决代码及点评 判断一个数是不是素数的方法,一般是看n是不是能被n以内的某个整数(1除外)整除 为了提高效率,这个整数范围一般缩小到n的平方根 如果在这个范围内的整数都不能整除,那么 ...
- 基于visual Studio2013解决C语言竞赛题之0407最大值最小值
题目 解决代码及点评 这道题考察循环和比较 /*********************************************************************** ...
随机推荐
- UUID Gen
https://github.com/twitter/snowflake/releases/tag/snowflake-2010 http://boundary.com/blog/2012/01/12 ...
- 开源项目live555学习心得
推荐:伊朗美女找丈夫比找工作难女人婚前一定要看清三件事 × 登录注册 疯狂少男-IT技术的博客 http://blog.sina.com.cn/crazyboyzhaolei [订阅][手机订 ...
- HDU 1348 Wall
题解:计算凸包周长 #include <iostream> #include <cmath> #include <algorithm> const int size ...
- TCP/IP笔记 四.应用层(1)——DNS
1. DNS DNS(Domain Name System ):域名系统,是因特网的一项核心服务,它作为可以将域名和IP地址相互映射的一个分布式数据库,能够使人更方便的访问互联网,而不用去记住能够被机 ...
- 通过自定义window来实现提示框效果
#import <UIKit/UIKit.h>#import <Foundation/Foundation.h> @interface ZMStatuBarHud : NSOb ...
- Minimum Inversion Number(线段树求逆序数)
Minimum Inversion Number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java ...
- Html表格<table>还是须要加入一些标签进行优化,能够加入标题<caption>和摘要<table summary>
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content ...
- 远程唤醒、WOL、Magic_Packet
背景:很多人熟悉远程桌面并经常地利用它所带来的方便,但是前提是服务器(远程电脑)必须是处于开机状态.对于机房里有专人管理的服务器,这点不成问题,但如果是放在家里的电脑,要让它7*24地开机似乎就不好办 ...
- VC++6.0打开文件出错的解决办法
1.下载http://support.microsoft.com/kb/241396里面的一个叫FileTool.exe的文件并解压,解压后是一个vc工程,用vc6.0打开工程,编译,得到FileTo ...
- Main function
Main function A program shall contain a global function named main, which is the designated start of ...